Re: Help in simple query!

2013-05-29 Thread Dr. Drijk
Checkup for typo's can be helpfull.
:)

Op dinsdag 28 mei 2013 22:53:39 UTC+2 schreef gonzela2006 het volgende:
>
> Hello,
> As you can see on the below image
>
>
> 
> I want to display students that didn't attendance on date 2013-03-01 so 
> the result should be as the following:
> *id name*
> 2 Marta Simon
> 4 Rex Maxwell
> 6 Vivian Ellis
>
> I know this is simple query but I got this error
> Error: SQLSTATE[42S22]: Column not found: 1054 Unknown column 
> 'StudentAttendance.date' in 'where clause'
>
> 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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: DebugKit.Toolbar

2013-04-16 Thread Dr. Drijk
Update:
A bit of research learned that the CSS-file in /DebugKit/webroot/CSS/ can't 
be read.


Op maandag 15 april 2013 17:17:28 UTC+2 schreef Dr. Drijk het volgende:
>
> cakePHP 2.3.2
> DebugKit 2.2
>
> Since i upgraded cake from 2.0 to 2.3.2 and the DebugKit tot 2.2 the 
> DebugKit.Toolbar won't work properly.
> I want the plugin to be available for each application, so I copied the 
> content of the plugin in 
> \cakePHP\Plugins\  in stead off \app\plugin\
> I didn(t change appcontroller.
>
> when opening localhost/cakephp/ all works well, but when i open 
> localhost/myApp/ there is no toolbar at the top of the page, but visible as 
> continuous text.
> Fine all I need to know is in there, but it far away from usefull.
>
> any suggestions?
>

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




DebugKit.Toolbar

2013-04-15 Thread Dr. Drijk
cakePHP 2.3.2
DebugKit 2.2

Since i upgraded cake from 2.0 to 2.3.2 and the DebugKit tot 2.2 the 
DebugKit.Toolbar won't work properly.
I want the plugin to be available for each application, so I copied the 
content of the plugin in 
\cakePHP\Plugins\  in stead off \app\plugin\
I didn(t change appcontroller.

when opening localhost/cakephp/ all works well, but when i open 
localhost/myApp/ there is no toolbar at the top of the page, but visible as 
continuous text.
Fine all I need to know is in there, but it far away from usefull.

any suggestions?

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: viewing PDF

2013-01-14 Thread Dr. Drijk
How silly, it was tagged out.

But now I get another error.
It can't get an object from an element.
*Fatal error*: Call to a member function add() on a non-object in *
D:\xampp\htdocs\VR\V6\app\View\Layouts\default.ctp* on line *47*



Op donderdag 10 januari 2013 17:35:17 UTC+1 schreef euromark het volgende:
>
> You forgot the RequestHandler component, didnt you?
>
>
> Am Donnerstag, 10. Januar 2013 17:19:15 UTC+1 schrieb Dr. Drijk:
>>
>> I'm using the CakePdf-plugin to parse a view as pdf.
>>
>> I added to \app\config\bootstrap.php :
>>  CakePlugin::load('CakePdf', array('bootstrap' => true, 'routes' => 
>> true));
>>  
>>  Configure::write('CakePdf', array(
>> 'engine' => 'CakePdf.WkHtmlToPdf',
>> 'margin' => array(
>> 'bottom' => 15,
>> 'left' => 50,
>> 'right' => 30,
>> 'top' => 45
>> ),
>> 'orientation' => 'landscape',
>> 'download' => true
>> ));
>>
>> and to app\config\routes.php: 
>> Router::parseExtensions('rss', 'json', 'xml', 'pdf');
>>
>> I added the pdf-folders, and created  view.ctp, and default.cpt
>>
>> When  I try the view action : /view/1 I get the corresponding view, 
>> either when i try /view/1.pdf, I don't get a pdf-page but the same html
>>
>> Where did it go wrong??.
>>
>>
>>
>>
>>
>>
>>

-- 
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 post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




viewing PDF

2013-01-10 Thread Dr. Drijk
I'm using the CakePdf-plugin to parse a view as pdf.

I added to \app\config\bootstrap.php :
 CakePlugin::load('CakePdf', array('bootstrap' => true, 'routes' => true));
 
 Configure::write('CakePdf', array(
'engine' => 'CakePdf.WkHtmlToPdf',
'margin' => array(
'bottom' => 15,
'left' => 50,
'right' => 30,
'top' => 45
),
'orientation' => 'landscape',
'download' => true
));

and to app\config\routes.php: 
Router::parseExtensions('rss', 'json', 'xml', 'pdf');

I added the pdf-folders, and created  view.ctp, and default.cpt

When  I try the view action : /view/1 I get the corresponding view, 
either when i try /view/1.pdf, I don't get a pdf-page but the same html

Where did it go wrong??.






-- 
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 post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




Re: i18n - no flags

2012-10-02 Thread Dr. Drijk
Update and case closed.

The problem could be in the latest version of cakePHP.(v2.3).
After reinstalling the previous version, everthing went well.

but hej, thank you for searching.

Patrick.

Op dinsdag 25 september 2012 16:46:03 UTC+2 schreef Dr. Drijk het volgende:
>
> maybe a silly question, but anyway.
>
> I'm using the i18n plugin, copied into the plugin folder.
> I use an element which creates the heading for each page. In this element 
> i use the switchFlag function of the pluging:
>   
> " $this->Html->image('printer-icoon.gif',array('alt'=>'print de pagina', 
> 'onclick'=>'window.print()', 'onmouseover'=>'this.style.border = "1px Solid 
> #EEDDFF 1px"', 'onmouseout'=>'this.style.border ="0px Solid #EEDDFF"')); 
> ?>
> I18n->flagSwitcher(array('class' => 'languages', 
> 'id' => 'language-switcher')); ?>"
>  
> The created 'flag' functions quite well, no problem with that, but the 
> pictures themself aren't shown.
> the html-code generated looks like this
> 
>
> I don't know it this is related to it. since I introduced the flags even 
> the results of DebugKit aren't rendered wel.
> All te results are shown at the end of the page and not as a toobar.
>
> any idea how to solve this?
>
> Patrick
>  
>
>

-- 
Like Us on FacekBook 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 post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.