Re: Oracle

2012-05-21 Thread oDiN
I dont have problems with the prefix table .. :) On May 21, 8:46 pm, rahajiyev wrote: > OMG, I just succeeded in getting paginator to work properly, with > sorting and all that! Apart from what was said in the tutorial above, > I also needed to tweak function describe() in Oracle.php. > > The lin

Re: jQuery append, how to get file content

2012-05-21 Thread Marcus James
Hi, In your controllers function you need to add this line if($this->params['isAjax']==1) { $this->layout = ''; } this checks if the current request call is an ajax one or not. Enjoy, Marcus -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the

jQuery append, how to get file content

2012-05-21 Thread Afif Abu Bakar
Hi, CakePHP newbie here. I'm trying to append the content from one of the view file (page.ctp) into another view file (index.ctp). So basically what I'm trying to do is: content from page.ctp > index.ctp I managed to get the content of page.ctp using below method. > >1. $.get('http:/

Re: V2.1.2 Email Verification after registration

2012-05-21 Thread Cody Sortore
Tested, worked perfectly! Thank you very much! Of all the ways I had tested doing this nothing else worked, but I think I was over thinking it before. On Monday, May 21, 2012 3:58:14 PM UTC-5, Richard wrote: > > sorry if I read too quickly, but if you need to get the newly inserted id, > it i

Re: V2.1.2 Email Verification after registration

2012-05-21 Thread Cody Sortore
Thank you, I will try it and if it works out I will be very happy! :-D On Monday, May 21, 2012 3:58:14 PM UTC-5, Richard wrote: > > sorry if I read too quickly, but if you need to get the newly inserted id, > it is very simple. > here is the example code: > > if ($this->OrganizationAddress->save

Re: V2.1.2 Email Verification after registration

2012-05-21 Thread Richard Joo
sorry if I read too quickly, but if you need to get the newly inserted id, it is very simple. here is the example code: if ($this->OrganizationAddress->save()) { // getting newly inserted OrganizationAddress.id $newId = $this->OrganizationAddress->id; } so, if SAVE

Re: V2.1.2 Email Verification after registration

2012-05-21 Thread olivio napolitano
Il giorno lunedì 21 maggio 2012, Cody Sortore ha scritto: > Okay, been working on this for a while, but I cannot figure out what > in the world is going on! > >public function valid() {hi to eweryone I hope all ya feeling good see ya... >if (!empty($this->passedArgs[0]) && !empty($th

V2.1.2 Email Verification after registration

2012-05-21 Thread Cody Sortore
Okay, been working on this for a while, but I cannot figure out what in the world is going on! public function valid() { if (!empty($this->passedArgs[0]) && !empty($this- >passedArgs[1])){ $username = $this->passedArgs[0]; $validation = $this->passedArgs[1];

Re: Many-to-many ACL

2012-05-21 Thread rihad
Nevermind, I think I got Oracle working with 2.1 thanks to this tutorial and a bit more thumb twiddling: http://www.hassanbakar.com/2012/01/09/using-oracle-in-cakephp-2-0/comment-page-1/#comment-38958 At the very least I could get pagination working. On May 21, 5:35 pm, rahajiyev wrote: > On May

Re: ImageMagick & Cake Ver 2.0.4

2012-05-21 Thread Ma'moon
Why don't you rais up debug mode or check your server's logs and see whats happening! Trust your self, you can do it :) On Mon, May 21, 2012 at 7:20 PM, Blues Clues wrote: > Hi > I have added this code by mapping the file location to files/upload/ under > webroot folder of Cakephp. However, noth

Re: ImageMagick & Cake Ver 2.0.4

2012-05-21 Thread bluesclues9
Hi I have placed this code in my controller (changed the file locations a bit to map to /files/upload under cakephp 'webroot' folder. Nothing happens. Atleast I don't see any new file created. What might be going wrong here? $im = new imagick( 'files/upload/test.pdf[0]' ); // c

Re: ImageMagick & Cake Ver 2.0.4

2012-05-21 Thread Blues Clues
Hi I have added this code by mapping the file location to files/upload/ under webroot folder of Cakephp. However, nothing happens. Would you know why this might be happening? -Adhi setImageColorspace(255); $im->setCompression(Imagick::COMPRESSION_JPEG); $im->setCompressionQuality(60); $im->s

Re: ImageMagick & Cake Ver 2.0.4

2012-05-21 Thread Justin Edwards
http://php.net/manual/en/imagick.setimageformat.php setImageColorspace(255); $im->setCompression(Imagick::COMPRESSION_JPEG); $im->setCompressionQuality(60); $im->setImageFormat('jpeg'); //resize $im->resizeImage(290, 375, imagick::FILTER_LANCZOS, 1); //write image on server $im->writeImage('thum

Re: ImageMagick & Cake Ver 2.0.4

2012-05-21 Thread Blues Clues
Hi, Thanks. Very encouraging start. Would you be kind to provide some sample code to use this in my controller? I am losing my mind on this to convert PDF to PNG file in my cakephp 1.3 controller. -Adhi On Monday, May 21, 2012 10:30:36 AM UTC-4, ibejohn818 wrote: > Use the pecl library im

Re: Moving server erros

2012-05-21 Thread AD7six
On Monday, 21 May 2012 15:16:49 UTC+2, Pedro Simão wrote: > > Hi guys! > > I have a CakePHP with GroupDeal on a server and I'm trying to copy it to > another but I get an error. > I could see it happens on webroot/index.php Line 87: > > $Dispatcher->dispatch($url); > > I've set the new databaser

Re: ImageMagick & Cake Ver 2.0.4

2012-05-21 Thread John Hardy
Use the pecl library imagick. It is more than capable and has a very good interface http://pecl.php.net/package/imagick On May 21, 2012 7:25 AM, "bluesclues9" wrote: > Hi > Just curious about this question as I have a similar need. Did you ever get > an answer or figured out yourself? > > thanks

Malformed $results from Find queries

2012-05-21 Thread Michael Salisbury
Cake Version 2.1 PHP 5.3.10 MySQL version 5.0.95 (cpanel server) 5.1.62 (dev server) Apache version 2.2.22 (cpanel server) 2.2.20 (dev server) cpanel server version 11.32.2 (redHat 5.8) (problem child) dev server version Ubuntu 11.10 (works perfectly) My problem is very specific, when I issue fin

Moving server erros

2012-05-21 Thread Pedro Simão
Hi guys! I have a CakePHP with GroupDeal on a server and I'm trying to copy it to another but I get an error. I could see it happens on webroot/index.php Line 87: $Dispatcher->dispatch($url); I've set the new databaser user and pass in the database.php file. Am I missing anything? -- Our new

Re: Displaying Images from Database

2012-05-21 Thread Miah Gregory
To render the images directly from the database, you need to output an appropriate mime type header then send the image data to the caller. It's doable in cake, but you need to jump through a few hoops. You certainly don't need to write the image to disk to serve it up to the caller, that would b

Re: ImageMagick & Cake Ver 2.0.4

2012-05-21 Thread bluesclues9
Hi Just curious about this question as I have a similar need. Did you ever get an answer or figured out yourself? thanks -Adhi -- View this message in context: http://cakephp.1045679.n5.nabble.com/ImageMagick-Cake-Ver-2-0-4-tp5126927p5708144.html Sent from the CakePHP mailing list archive at Nab

Sortable reorder ajax save

2012-05-21 Thread Ankit Patel
Hello Everyone, Can anyone help me to use sortable + reorder with ajax saving on order change Thanks and Regards, Vegita -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with t

Re: Oracle

2012-05-21 Thread rahajiyev
OMG, I just succeeded in getting paginator to work properly, with sorting and all that! Apart from what was said in the tutorial above, I also needed to tweak function describe() in Oracle.php. The line where it says $sql = 'SELECT COLUMN_NAME, DATA_TYPE, DATA_LENGTH FROM all_tab_columns WHERE ta

Re: Many-to-many ACL

2012-05-21 Thread rahajiyev
On May 16, 1:23 am, Justin Edwards wrote: > To DB > > https://github.com/justinledwards/tinyauthdb/blob/2.1/app/Controller/... > Does tinyauthdb work with Cake 1.3? I need 1.3 for its Oracle support. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check

Re: Displaying Images from Database

2012-05-21 Thread teji infin
thnx yr On Mon, May 21, 2012 at 4:52 PM, LITTO CHACKO wrote: > u r imagename is storing to databse.. the image u uploded is going to some > other else > > > On Mon, May 21, 2012 at 4:35 PM, AD7six wrote: > >> >> >> On Monday, 21 May 2012 12:42:46 UTC+2, Teji wrote: >>> >>> Actually i am storing

Oracle

2012-05-21 Thread rahajiyev
Has anyone had any luck using Oracle database in 2.1.2? I was able to migrate oracle.php from 1.3.15 using this howto: http://www.hassanbakar.com/2012/01/09/using-oracle-in-cakephp-2-0/ but am having trouble using find() even on simplest tables. -- Our newest site for the community: CakePHP Video

Re: Displaying Images from Database

2012-05-21 Thread LITTO CHACKO
u r imagename is storing to databse.. the image u uploded is going to some other else On Mon, May 21, 2012 at 4:35 PM, AD7six wrote: > > > On Monday, 21 May 2012 12:42:46 UTC+2, Teji wrote: >> >> Actually i am storing my images in my mysql database using image longblob >> named entry.. > > > Tha

Re: Displaying Images from Database

2012-05-21 Thread Steve Found
On 21/05/12 11:42, teji infin wrote: Actually i am storing my images in my mysql database using image longblob named entry.. On Mon, May 21, 2012 at 4:07 PM, LITTO CHACKO > wrote: if u stored your image in webroot folder u can display images rightly. but

Re: Back Patting

2012-05-21 Thread LITTO CHACKO
you r storing image name in your databse. your image uploaded is going someotherelse?? On Mon, May 21, 2012 at 4:43 PM, stork wrote: > > I'm sure you are just saying what we are all thinking! >> > > +1 > > -- > Our newest site for the community: CakePHP Video Tutorials > http://tv.cakephp.org >

Re: Back Patting

2012-05-21 Thread stork
> I'm sure you are just saying what we are all thinking! > +1 -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this

Re: Displaying Images from Database

2012-05-21 Thread AD7six
On Monday, 21 May 2012 12:42:46 UTC+2, Teji wrote: > > Actually i am storing my images in my mysql database using image longblob > named entry.. That's most likely the first thing you should stop doing. AD -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org

Re: Displaying Images from Database

2012-05-21 Thread teji infin
Actually i am storing my images in my mysql database using image longblob named entry.. On Mon, May 21, 2012 at 4:07 PM, LITTO CHACKO wrote: > if u stored your image in webroot folder u can display images rightly. but > if u uploaded images out of webroot folder then u have to use some > imagec

Re: Displaying Images from Database

2012-05-21 Thread LITTO CHACKO
if u stored your image in webroot folder u can display images rightly. but if u uploaded images out of webroot folder then u have to use some imagecontroller to set path:- like this:- ?php class ImagepathController extends AppController{ function index(){ $query = $this->params->query; $file

Displaying Images from Database

2012-05-21 Thread Teji
Can anyone tell me how to display images from my database to my webpage. i upload the images in database using longblob datatype. anyone help plz.. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.o

Re: Roadmaps

2012-05-21 Thread Steve Found
On 20/05/12 22:36, Ratty wrote: Can anyone point me to the version roadmaps please ? I have looked in the Wiki and on the main CakePHP site but don't seem to be able to find them. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Qu

Re: SessionComponent needlessly caching auth info

2012-05-21 Thread rahajiyev
Like when giving a permission (role) to a user, and then taking it back from him. I'll try looking into db sessions, thanks. On May 21, 12:38 pm, AD7six wrote: > On Monday, 21 May 2012 08:55:25 UTC+2, rahajiyev wrote: > > > Is there a way to tell Cake not to cache Auth info in the session? > > Wh

Re: SessionComponent needlessly caching auth info

2012-05-21 Thread AD7six
On Monday, 21 May 2012 08:55:25 UTC+2, rahajiyev wrote: > > Is there a way to tell Cake not to cache Auth info in the session? > Whenever the admin changes a users data (like the time when password > will expire) he needs to mirror that change in the Session so the user > Auth can pick up the

Re: SessionComponent needlessly caching auth info

2012-05-21 Thread rahajiyev
The above is easy to do when user is changing his own data, but when an admin changes user's data, how can he invalidate THEIR session? On May 21, 11:55 am, rahajiyev wrote: > Is there a way to tell Cake not to cache Auth info in the session? > Whenever the admin changes a users data (like the ti