Skip to content

Commit

Permalink
Manage site Contacts/ with MessageController => CakePhp 2 formular vi…
Browse files Browse the repository at this point in the history
…ew (#28)

* Fixes: DocumentRoot File permissions

* Fixes: ServerRoot

* Merge branch 'development' into issue-4-contacts

* Basic messenger WIP

https://book.cakephp.org/2.0/fr/models/data-validation.html

* CRUD Message > contactus/add,edit,delete,index

* WIP https://book.cakephp.org/2.0/en/tutorials-and-examples/blog-auth-example/auth.html
clientapi and graph sdk

* WIP AuthComponent Client+Motdepasse

* Feature essentials

View
Access scope
Tests

* beta release

* Document PDO errors

* Fixes: The action message is not defined in controller E14Controller

* Fixes: Illegal Instructions 4 (cake)

* Fixes: Table clients for model Client was not found in datasource default

* Adds app/Locale views

* armhf pushed ./mysqldb
  • Loading branch information
b23prodtm authored Jul 11, 2021
1 parent 61f682e commit 79ce27e
Show file tree
Hide file tree
Showing 54 changed files with 2,124 additions and 394 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ docker-compose.*
acake2php*.zip
/app/Config/database.php*
/app/Config/database.sql*
/app/Config/Schema/schema_*.php
/app/Config/Schema/schema.php*
/app/tmp
/app/Vendor/
!/app/Vendor/autoload.php
Expand Down
4 changes: 2 additions & 2 deletions Scripts/config_app_database.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ wd="$TOPDIR/app/Config"
while [[ "$#" -gt 0 ]]; do case $1 in
*.php)
dbfile=$1
outfile=$(echo "$dbfile" | cut -d . -f 1)
file=$(echo "$dbfile" | cut -d . -f 1)
# shellcheck source=cp_bkp_old.sh
. "${TOPDIR}/Scripts/cp_bkp_old.sh" "$wd" "$dbfile" "${outfile}.php"
. "${TOPDIR}/Scripts/cp_bkp_old.sh" "$wd" "$dbfile" "${file}.php"
;;
*.sock )
if [ -n "$(command -v mysql)" ]; then
Expand Down
2 changes: 1 addition & 1 deletion Scripts/lib/shell_prompt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ patches() {
}
#; export -f patches
cakephp() {
"${TOPDIR}/app/Console/cake" -working "${TOPDIR}/app" "$@"
"${TOPDIR}/app/Console/cake.php" "$@"
}
#; export -f cakephp
docker_name() {
Expand Down
158 changes: 90 additions & 68 deletions app/Config/Schema/schema.cms.php

Large diffs are not rendered by default.

219 changes: 0 additions & 219 deletions app/Config/Schema/schema.php

This file was deleted.

28 changes: 28 additions & 0 deletions app/Config/email.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?php
/*
* @copyrights www.b23prodtm.info - 2017 (all rights reserved to author)
* @author T. Arimanana
*/

App::uses('CakeEmail', 'Network/Email');

class EmailConfig {
public $default = array(
'transport' => 'Mail',
'from' => 'webmaster@localhost',
//'charset' => 'utf-8',
//'headerCharset' => 'utf-8',
);
public $gmail = array(
'host' => 'smtp.gmail.com',
'port' => 465,
'username' => 'my@gmail.com',
'password' => 'secret',
'transport' => 'Smtp',
'tls' => true
);
public function __construct() {
$this->default['from'] = getenv('SERVER_NAME') ? 'no-reply@' . getenv('SERVER_NAME') : $this->default['from'];
}
}
?>
24 changes: 24 additions & 0 deletions app/Config/routes.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,30 @@
* views are prefixed with "admin/" => admin_action()
*/
Router::connect('/admin/e14/:action/*', array('controller' => 'e14', 'admin' => true));
/**
*************************************************** ArticleController routing
* the one star(*) wildcard is for one-to-one passed arguments separated by the slash '/'
*/
Router::connect('/users/psd/:action/*', array('controller' => 'MotDePasse'));
/**
* the two stars(**) wildcard is for many-to-one argument passed as a whole string
*/
Router::connect('/users/psd/**', array('controller' => 'MotDePasse', 'action' => 'index'));
/**
*/
Router::connect('/admin/users/psd/:action/*', array('controller' => 'MotDePasse', 'admin' => true));
/**
*************************************************** ArticleController routing
* the one star(*) wildcard is for one-to-one passed arguments separated by the slash '/'
*/
Router::connect('/users/:action/*', array('controller' => 'client'));
/**
* the two stars(**) wildcard is for many-to-one argument passed as a whole string
*/
Router::connect('/users/**', array('controller' => 'client', 'action' => 'index'));
/**
*/
Router::connect('/admin/users/:action/*', array('controller' => 'client', 'admin' => true));
/**
*************************************************** ArticleController routing
* the one star(*) wildcard is for one-to-one passed arguments separated by the slash '/'
Expand Down
Loading

0 comments on commit 79ce27e

Please sign in to comment.