Re: square(croped) thumbnails

2006-05-12 Thread BoBB
Is there any documentation on how to use the library? I read through it, but I can't really figure it out heh -- php newbOn 5/12/06, gwoo 
[EMAIL PROTECTED] wrote:rdBloggery does this.
http://cakeforge.org/projects/rdos
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake PHP group.  To post to this group, send email to cake-php@googlegroups.com  To unsubscribe from this group, send email to [EMAIL PROTECTED]  For more options, visit this group at http://groups.google.com/group/cake-php  -~--~~~~--~~--~--~---


Re: Problem with accessing cake application

2006-05-11 Thread BoBB
I was actually thinking about setting up a virtual host to deal with the problem. But just pointing the document root at it might be easier.On 5/10/06, calzone
 [EMAIL PROTECTED] wrote:If this is your machine, you may want to consider installing cake under
/Library/WebServer/Documents/ or modifying /etc/httpd/httpd.conf topoint Document Root directly at either your cake folder or cake'swebroot.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake PHP group.  To post to this group, send email to cake-php@googlegroups.com  To unsubscribe from this group, send email to [EMAIL PROTECTED]  For more options, visit this group at http://groups.google.com/group/cake-php  -~--~~~~--~~--~--~---


Problem with accessing cake application

2006-05-10 Thread BoBB
I have a cake application running on my local apache server on OSX, it is accessed via http://localhost/~bob/bidpost/ ... when I go to that URL and cake takes over and tries to redirect to app/webroot/ it expands the ~bob in the URL to it's actual path and tries to access 
http://localhost/Users/bob/Sites/bidpost/app/webroot/ instead of http://localhost/~bob/bidpost/app/webroot/
 ... does anyone know why it might be doing this? I have mod rewrite enabled the .htaccess file is there.

-- 
/* BoBB
* AIM: Jodokast49 ICQ: 151495596
* Jabber: [EMAIL PROTECTED]
* http://irgeek.net
*/

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake PHP group.  To post to this group, send email to cake-php@googlegroups.com  To unsubscribe from this group, send email to [EMAIL PROTECTED]  For more options, visit this group at http://groups.google.com/group/cake-php  -~--~~~~--~~--~--~---


Re: Session issue

2006-05-08 Thread BoBB
Try using $this-Session-write('Customers.id', $id); and $this-Session-read('Customers.id'); to write and read from the session.
On 5/8/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Hi all, I'm new here, from Italy!Well, I'm developing an Intranet system based on the last version of
XAMPP and CakePHP 1.0; I encounter the following issue: I access a pagewhere I list some customers, then if you click on one customer you gointo a page where are listed all the assessments coupled to thatcustomer. Quite simple uh? Nice, but I need to store the selected
customer id in a session for future usage and so this is my controllerof the page where I access once I selected a customer:class AssessmentsController extends AppController{var $name = 'Assessments';
function index($id){$_SESSION['Customers.id'] = $id;$this-set('data',$this-Assessment-findAllByCustomerId($id));
}function add(){$this-set('customers',$this-Assessment-Customer-generateList());if (empty($this-params['data'])){
$this-render();}else{if ($this-Assessment-save($this-params['data'])){$this-flash('Assessment added.','/customers');
}}}function destroy($id){if ($this-Assessment-del($id, $cascade=true)){$this-flash('Assessment has been destroyed.',
'/customers');}}}The problem is that when I need to read the Customers.id value I geta strange text: favicon.ico. How can I avoid that?
Thanks to all for the help!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake PHP group.  To post to this group, send email to cake-php@googlegroups.com  To unsubscribe from this group, send email to [EMAIL PROTECTED]  For more options, visit this group at http://groups.google.com/group/cake-php  -~--~~~~--~~--~--~---


Session access from Model

2006-05-08 Thread BoBB
I was wondering if there was a way to access session information from the model, more specifically for a beforeSave callback function.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake PHP group.  To post to this group, send email to cake-php@googlegroups.com  To unsubscribe from this group, send email to [EMAIL PROTECTED]  For more options, visit this group at http://groups.google.com/group/cake-php  -~--~~~~--~~--~--~---


Re: Session issue

2006-05-08 Thread BoBB
How are you writing the session variable? In the code you pasted you were using $_SESSION['Customers.id'] .. did you try $this-Session-write('Customers.id
', $customer_id); ?On 5/8/06, [EMAIL PROTECTED] [EMAIL PROTECTED]
 wrote:Well, actually I did that but no way...when I print the value in the
view I get always the favicon.ico.The code is:in the controller - to retrieve the value$customer_id = $this-Session-read('Customers.id');$this-set('customers_id',$customer_id);
in the view - to print it?php echo $customers_id; ?And nothing...I get always that favicon.ico.Any solution?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake PHP group.  To post to this group, send email to cake-php@googlegroups.com  To unsubscribe from this group, send email to [EMAIL PROTECTED]  For more options, visit this group at http://groups.google.com/group/cake-php  -~--~~~~--~~--~--~---


Re: How to accomplish SELECT [not *] and WHERE clause?

2006-05-04 Thread BoBB
If you check out the API entry for findAll[1] there are function parameters that should be able to do anything you might want with the queries. As far as doing JOIN queries and the like I would recomend checking out the association features in cake. The best resource I have found to explain that is the Model section[2] in the manual[3]. I had a hard time understanding the associations until I read section 3 of that page in the manual and it all just kinda clicked.
[1] http://api.cakephp.org/class_model.html#c2d8fb14f5398c85452d978bd013436f[2] 
http://manual.cakephp.org/chapter/6[3] http://manual.cakephp.orgOn 5/4/06, calzone 
[EMAIL PROTECTED] wrote:ok, so although I'm pretty seasoned with php itself, I'm 100% pure cake
newbie, and this is likely answered somewhere, but I just haven't foundit yet. Not in the manual, not in the wiki, and not here in this group.This seems to be ripe for an entry in an FAQ somewhere though.
Here's the deal: I just completed the blog tutorial and it occurred tome that this is all very nice but... the findAll() method seems tosimply return every single column and every single row from thedatabase, while, the read() method seems to be just for the purposes of
returning all columns for one record.This seems horribly inefficient.I'm positive there must be a way torefine these queries somehow under cake and I'm just bumbling in thedark.I'd like to be able to only grab a certain number of columns, or
perhaps a count of records or a sum of records.I'd like to be able toask the database to return only records that match a certain criteria,or only to update records matching a certain criteria.Also, I'd like
to be able to create inner and outer joins across several tables andeven databases if need be.I'm sorry, but I just don't get how to use cake for all of that.I'mcurrently trying to set about rewriting some of my existing websites
under cake, and there is all sorts of database logic going on.I'mguessing there's probably a lot of built in methods that handle a lotof this stuff, as well as possibly a method to pass a custom query?Yes? No?
Any help or direction is much appreciated!

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake PHP group.  To post to this group, send email to cake-php@googlegroups.com  To unsubscribe from this group, send email to [EMAIL PROTECTED]  For more options, visit this group at http://groups.google.com/group/cake-php  -~--~~~~--~~--~--~---


Re: Controller Relationship Many-to - Many

2006-04-28 Thread BoBB
If you are doing a findAll I am pretty sure it will return in an array in the form of $arrayName[0]['Area']['name'] ... if you are doing just a find it will only return one result and therefore not the extra tier in the array. One thing you can do make sure is right after you pull that info from the DB do a var_dump on the array, wrap it in pre html tags to make it easier to read and disect the array it is returning.
On 4/28/06, Kenia [EMAIL PROTECTED] wrote:
ah! the error is in line : td?php echo $people['Area']['name'];?/td file: index.php(People)

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake PHP group.  To post to this group, send email to cake-php@googlegroups.com  To unsubscribe from this group, send email to [EMAIL PROTECTED]  For more options, visit this group at http://groups.google.com/group/cake-php  -~--~~~~--~~--~--~---