Re: Cakephp 3.0 Get and Modify Query conditions in beforeFind function
Hi Mark Story, any help please? thanks On Friday, January 23, 2015 at 6:02:46 PM UTC+5:30, Cake Developer wrote: Hi Josh, I tried both PlumSearch and Search Plugin in my application and they are not working as expected. They are adding search arguments in existing conditions in query object. Failing Situation. Existing condition has Users.active = 1 and If new condition array has Users.active = 0 so this way merged conditions will have Users.active = 1 AND Users.active = 0 //No Result I believe it is really a issue. Thanks in advance. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.
Re: How do I update cakephp existing app?
For more help, read this post: http://mark-story.com/posts/view/using-composer-in-cakephp-3-0 On Wednesday, January 28, 2015 at 9:52:26 PM UTC+5:30, frocco wrote: Hello, I see cakephp 3 has been updated, how do I update my current app that is using an older version of cakephp 3? Thanks -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.
Email CSV Attachment receives empty in Outlook 2013
I have received No Data CSV attachment email in Outlook 2013 only but got a CSV with data on gmail and other mails. I have used the following CakePHP code: $this-Email-reset(); $fileatt = ROOT . DS . APP_DIR . DS . WEBROOT_DIR . DS; $this-Email-to =array('r...@xyz.com'); $this-Email-cc =array('r...@gmail.com'); $this-Email-subject = CSV mail; $this-Email-from = i...@gmail.com; $this-Email-sendAs = 'html'; $this-Email-filePaths = array($fileatt); $this-Email-attachments =array(Sample.csv); $this-Email-charset = utf-8; $this-Email-headerCharset = utf-8; $message = Hi Thanks!; $this-Email-send($message); Help me to resolve this. Thanks. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.
Two tables in the same page
Hello I am trying to understand Cakephp but i am missing something. I want to display two tables. I tried many different things but i ALWAYS end up on the same message Call to a member function find() on a non-object CREATE TABLE posts ( id INT UNSIGNED AUTO_INCREMENT PRIMARY KEY, title VARCHAR(50), body TEXT, created DATETIME DEFAULT NULL, modified DATETIME DEFAULT NULL ); CREATE TABLE comments ( post_id INT UNSIGNED AUTO_INCREMENT, name VARCHAR(50), comment TEXT, created DATETIME DEFAULT NULL, FOREIGN KEY (post_id) REFERENCES posts(id) ); *PostsController.php* ?php class PostsController extends AppController { public $helpers = array('Html', 'Form'); public function index() { $this-set('posts', $this-Post-find('all')); $this-set('comments', $this-Comment-find('all')); } } ? *Posts.php* ?php class Posts extends AppModel { } ? *Comments.php* ?php class Comments extends AppModel { public $hasMany = array( 'Comments' = array( 'className' = 'Comment', 'foreignKey' = 'post_id', 'dependent' = true ) ); } ? The problems seems to be in the *PostController* file but i don't know what is the problem. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.
Re: Two tables in the same page
Try to change like: CREATE TABLE comments ( id INT UNSIGNED AUTO_INCREMENT, post_id INT UNSIGNED, PostsController.php ?php class PostsController extends AppController { public $helpers = array('Html', 'Form'); public function index() { $this-set('posts', $this-Post-find('all')); $this-set(‘comments’, $this-Post-Comment-find('all')); } } Post.php ?php class Post extends AppModel { public $hasMany = array( 'Comment' = array( 'className' = 'Comment', 'foreignKey' = 'post_id', 'dependent' = true ) ); } Comment.php ?php class Comment extends AppModel { public $belongsTo = array( 'Post’ ); } Andras Kende On Jan 29, 2015, at 9:45 AM, logintech123 logint...@gmail.com wrote: Hello I am trying to understand Cakephp but i am missing something. I want to display two tables. I tried many different things but i ALWAYS end up on the same message Call to a member function find() on a non-object CREATE TABLE posts ( id INT UNSIGNED AUTO_INCREMENT PRIMARY KEY, title VARCHAR(50), body TEXT, created DATETIME DEFAULT NULL, modified DATETIME DEFAULT NULL ); CREATE TABLE comments ( post_id INT UNSIGNED AUTO_INCREMENT, name VARCHAR(50), comment TEXT, created DATETIME DEFAULT NULL, FOREIGN KEY (post_id) REFERENCES posts(id) ); PostsController.php ?php class PostsController extends AppController { public $helpers = array('Html', 'Form'); public function index() { $this-set('posts', $this-Post-find('all')); $this-set('comments', $this-Comment-find('all')); } } ? Posts.php ?php class Posts extends AppModel { } ? Comments.php ?php class Comments extends AppModel { public $hasMany = array( 'Comments' = array( 'className' = 'Comment', 'foreignKey' = 'post_id', 'dependent' = true ) ); } ? The problems seems to be in the PostController file but i don't know what is the problem. -- Like Us on FaceBook https://www.facebook.com/CakePHP https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com mailto:cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com mailto:cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout https://groups.google.com/d/optout. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.
Simultaneous Basic and Form Authentication
Hi, folks. I was wondering if I could use Basic and Form Authentication simultaneously in the same app, since the app has an admin section, and will be used as an API at the same time. I read in the Book that one can use multiple authentication providers at the same time, but does that actually work? I've tried implementing the example on the book, but my pages always end up asking BasicAuth even when there's an actual view for FormAuth already in place. I also noticed one thread in this group asking a similar question, although his concern is to make Basic and Form authentication work simultaneously AND use two different User tables. In my case, I just need to use a single User table for logging into the web app using FormAuth, and authenticating API calls using BasicAuth. I'm currently using the 2.4 series for this particular project. Thanks in advance. :) -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.