Log message #4115499

# At Username Text
# Feb 8th 2018, 06:01 narendravaghela By the way, you want to apply CSS class to the form, right?
# Feb 8th 2018, 06:01 narendravaghela ``` $user = $this->Users->newEntity(); ```
# Feb 8th 2018, 06:01 narendravaghela In controller,
# Feb 8th 2018, 05:38 sugitime I tried: $this->Form->create($login[‘class’=>’form-signin’]); but I get errors. same with if I replace $login with $user. but I mean, it sort of makes sense. I never set hte $user variable. can I see the controller code too please?
# Feb 8th 2018, 05:37 narendravaghela It is connected with User entity
# Feb 8th 2018, 05:36 sugitime thats for a modeless form though, isnt it?
# Feb 8th 2018, 05:35 narendravaghela @sugitime Check this ``` <?php echo $this->Form->create($user [ 'url' => ['_name' => 'add-use'], 'type' => 'post', 'class' => 'horizontal-form', 'id' => 'create-user-form', 'enctype' => 'multipart/form-data' ]); ?> ```
# Feb 8th 2018, 05:32 sugitime been looking around the Form docs, but cant seem to figure out how to set the class attribute of a form tag
# Feb 8th 2018, 05:31 sugitime anyone on that might be able to help with a quick question?
# Feb 8th 2018, 05:13 sugitime I feel like that is the answer...
# Feb 8th 2018, 05:13 sugitime or should I be placing this the Auth component in the initialize() of each controller?
# Feb 8th 2018, 05:11 sugitime controllers.
# Feb 8th 2018, 05:11 sugitime so im following a tutorial about setting up Auth, and im confused a bit. the AppController.php contains the loadComponenet, then uses $this->AUth->allow() to allow anonymous access to methods in other classes. Im confused because I dont know how to it determines which controllers it gives access to unambiguously. Lets say I have the view method in the WidgetController.php and the FooController.php. $this->Auth->allow() does not allow me
# Feb 8th 2018, 04:24 newbie_cakie but i don't think this is a robust solution
# Feb 8th 2018, 04:24 newbie_cakie these all go away when i do "setenforce 0"
# Feb 8th 2018, 04:23 newbie_cakie i have set the permission and the group so that this supposedly shouldn't be an issue
# Feb 8th 2018, 04:23 newbie_cakie these are couple of them
# Feb 8th 2018, 04:23 newbie_cakie Warning (2): Cannot modify header information - headers already sent by (output started at /var/www/html/MyApp/vendor/cakephp/cakephp/src/Error/Debugger.php:850) [CORE/src/Http/ResponseEmitter.php, line 181]
# Feb 8th 2018, 04:23 newbie_cakie Warning (512): _cake_model_ cache was unable to write 'debug_kit_requests' to DebugKit\Cache\Engine\DebugEngine cache [CORE/src/Cache/Cache.php, line 287]
# Feb 8th 2018, 04:23 newbie_cakie Warning (512): SplFileInfo::openFile(/var/www/html/MyApp/tmp/cache/models/myapp_cake_model_debug_kit_requests) [<a href='https://secure.php.net/splfileinfo.openfile'>splfileinfo.openfile</a>]: failed to open stream: Permission denied [CORE/src/Cache/Engine/FileEngine.php, line 397]
# Feb 8th 2018, 04:22 newbie_cakie Warning (512): SplFileInfo::openFile(/var/www/html/MyApp/tmp/cache/persistent/myapp_cake_core_translations_debug_kit_en__u_s): failed to open stream: Permission denied [CORE/src/Cache/Engine/FileEngine.php, line 397]
# Feb 8th 2018, 04:22 newbie_cakie so i'm getting bunch of weird warnings...
# Feb 8th 2018, 04:17 voycey Yep - just ask your question and somoene will answer
# Feb 8th 2018, 03:58 newbie_cakie can anyone offer me some assistance?
# Feb 8th 2018, 03:58 newbie_cakie i have a question about setting up cakephp production server on centOS7 (apache)
# Feb 8th 2018, 03:58 newbie_cakie hello?
# Feb 8th 2018, 02:07 amit Hey @jesusfigueroahernande are you there ?
# Feb 8th 2018, 02:02 amit I am uploading images but the problem is the file is upload and when I save the file name in the db I am getting validation error So I want to upload the image only after validation successfully
# Feb 8th 2018, 01:54 jesusfigueroahernande Hola @amit
# Feb 8th 2018, 01:52 amit Hi @jesusfigueroahernande
# Feb 7th 2018, 22:26 amit ok
# Feb 7th 2018, 22:12 maymeow @amit tried already :slightly_smiling_face: thanks
# Feb 7th 2018, 22:12 amit Hey @maymeow you ca add the method in ModelTable.php file and it will work.
# Feb 7th 2018, 22:07 maymeow i want they can be possible to call with `$this->Model->myFunction()` in controllers
# Feb 7th 2018, 22:06 maymeow where can i add my onw function to models??? Model.php or ModelTable.php???
# Feb 7th 2018, 22:00 amit Anyone around
# Feb 7th 2018, 21:51 amit So I want to upload the image only after validation successfully
# Feb 7th 2018, 21:51 amit I am uploading images but the problem is the file is upload and when I save the file name in the db I am getting validation error
# Feb 7th 2018, 21:50 amit Hi All
# Feb 7th 2018, 21:42 spencdev Can you gist your controller?
# Feb 7th 2018, 21:33 blackjccl File uploaded https://cakesf.slack.com/files/U5V7HDBHC/F96LKLB8X/create_folder_a_root.php / https://slack-files.com/T053DPNCM-F96LKLB8X-979032f7fe