# |
Nov 22nd 2017, 13:05 |
joopp |
well |
# |
Nov 22nd 2017, 13:05 |
joopp |
read does not work too but the check |
# |
Nov 22nd 2017, 13:04 |
joopp |
i use $this->request->session()->check('file_id') |
# |
Nov 22nd 2017, 13:04 |
joopp |
okey thank you the problem was not missing of include |
# |
Nov 22nd 2017, 13:04 |
frazr |
try $this->request->Session()->read('file_read'); |
# |
Nov 22nd 2017, 13:02 |
frazr |
include the session component |
# |
Nov 22nd 2017, 13:01 |
joopp |
but this also does not work |
# |
Nov 22nd 2017, 13:01 |
joopp |
if(isset($this->Session->read('file_read'))) |
# |
Nov 22nd 2017, 13:01 |
joopp |
also i want to check if fileid is even exist |
# |
Nov 22nd 2017, 13:00 |
joopp |
i got Call to a member function read() on boolean |
# |
Nov 22nd 2017, 13:00 |
joopp |
but i can not read by $this->Session->read('file_read') |
# |
Nov 22nd 2017, 12:59 |
joopp |
i would like to read my session i passed a file id in the fileupload function |
# |
Nov 22nd 2017, 12:54 |
joopp |
hello all |
# |
Nov 22nd 2017, 11:25 |
diego182 |
can someone helpme to findout whats going on? |
# |
Nov 22nd 2017, 11:25 |
slackebot2 |
exists in the namespace |
# |
Nov 22nd 2017, 11:25 |
diego182 |
hi, i've trying to setup tests for the first time, i have a plugin loaded in vendor and everything seens to be ok, but its complaining about this `Referenced fixture class "Users\Test\Fixture\RolesFixture" not found. Fixture "plugin.users.roles" was referenced in test case "Users\Test\TestCase\Model\Table\RolesTableTest". in [/var/www/users/vendor/cakephp/cakephp/src/TestSuite/Fixture/FixtureManager.php, line 229]` but in theory this file |
# |
Nov 22nd 2017, 11:19 |
frazr |
good to know |
# |
Nov 22nd 2017, 11:18 |
frazr |
:) thanks |
# |
Nov 22nd 2017, 11:15 |
ZoeB |
That's not *too* bad going! I've taken longer to find a simpler bug, on occasion. |
# |
Nov 22nd 2017, 11:14 |
frazr |
ugh..fml |
# |
Nov 22nd 2017, 11:14 |
frazr |
2 hours |
# |
Nov 22nd 2017, 11:14 |
frazr |
multiple_users.0.id instead of multiple_users.0.user_id |
# |
Nov 22nd 2017, 11:01 |
joopp |
frazr |
# |
Nov 22nd 2017, 10:51 |
ZoeB |
Sometimes, I need to make use of the user data in models so I can use it within methods that get called from afterSave() automatically. Is there a way models can access my attribute AppController->user, or a way I can automatically pass it to all models when they're initialised, on the offchance they need to use it? Thanks! |
# |
Nov 22nd 2017, 10:51 |
ZoeB |
Hi! So I'm using CakePHP 1.3 on one site and 2.0 on another (and yes, I know I need to upgrade them as soon as I can)... |
# |
Nov 22nd 2017, 10:46 |
laahudra |
Hello Channel. I want to trigger unit test from controller, because I have UI with controller to test. I want to trigger test controller, get results and send to email. Last part is simple but first and second is more complicated. Do you have any clues? |
# |
Nov 22nd 2017, 10:45 |
joopp |
but i only need for 4 users,and having more lines for the tasks |
# |
Nov 22nd 2017, 10:44 |
joopp |
so if 4 users were and 5 tasks were it forcing 20 times |
# |
Nov 22nd 2017, 10:44 |
rudy1976s |
is there a way to force Static files timestamp expiration to more than 24 hours ? |
# |
Nov 22nd 2017, 10:43 |
joopp |
the 2 foreach was set inside |
# |
Nov 22nd 2017, 10:43 |
joopp |
but in my case was that in the view i had to foreach on users and foreach on users_tasks |
# |
Nov 22nd 2017, 10:42 |
joopp |
i think we need be in contact,i had some problems too |
# |
Nov 22nd 2017, 10:40 |
frazr |
yep |
# |
Nov 22nd 2017, 10:40 |
joopp |
you mean by pivot table the tasks_users? |
# |
Nov 22nd 2017, 10:39 |
laahudra |
Hello Channel. I want to trigger unit test from controller, because I have UI with controller to test. I want to trigger test controller, get results and send to email. Last part is simple but first and second is more complicated. Do you have any clues? |
# |
Nov 22nd 2017, 10:38 |
frazr |
didn't quite follow :) |
# |
Nov 22nd 2017, 10:37 |
joopp |
and i only can acces in the _joinData |
# |
Nov 22nd 2017, 10:37 |
joopp |
i will says your table name i had to reachextra datas from user |
# |
Nov 22nd 2017, 10:36 |
frazr |
i have a vague memory of struggling with this in the past aswell |
# |
Nov 22nd 2017, 10:36 |
joopp |
oh i few days ago i had something like similar |
# |
Nov 22nd 2017, 10:36 |
frazr |
id, task_id, user_id + extra data |