# |
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 |
# |
Feb 7th 2018, 21:32 |
blackjccl |
I was doing well |
# |
Feb 7th 2018, 21:32 |
blackjccl |
a query as I do to create a folder in the root |
# |
Feb 7th 2018, 21:31 |
blackjccl |
Hello guys |
# |
Feb 7th 2018, 21:07 |
ank068 |
A var_dump of $this->Flash in AppController gives bool(false).. Does that help in any way? |
# |
Feb 7th 2018, 20:58 |
ank068 |
Do i need to impost the FlashComponent? |
# |
Feb 7th 2018, 20:28 |
narendravaghela |
is there any example on that? |
# |
Feb 7th 2018, 20:28 |
narendravaghela |
I am facing an issue with https://github.com/FriendsOfCake/cakephp-upload when there is belongsToMany relation beetween models |
# |
Feb 7th 2018, 20:16 |
alysson-azevedo |
I mean, the `parent::__construct($request, $response, $eventManager, $viewOptions);` would be called before assigning a new $response, right? |