Re: Render ho/ho

2008-01-07 Thread Enchy
I am not trying to get the $id in the view, but in the email controller. $this->set("data",$this->Property->FindbyId($id)); On Jan 4, 6:09 pm, Robby Anderson <[EMAIL PROTECTED]> wrote: > Maybe I mistook the question, but couldn't you just do this in your > controller: > > $this->controlle

Render ho/ho

2008-01-04 Thread Enchy
Hi I am trying to figure out howto change this: $this->controller->render("email"); Into this: $this->controller->render("email/$id"); I would like to render a page with an action attached to it. But I get this: You are seeing this error because the view for OperatorsController::ema

No Html Tables

2007-05-23 Thread Enchy
Hi I looked at cakephp.org and they dont use any tables in their html. I would like to do the same with my site but with cakephp Cakephp has this for tables: echo $html- >tableCells($tr,array('class'=>'altRow'),array('class'=>'evenRow')); Do they have a function for div rows like this or do I

Re: Deleting from multiple not happening

2007-05-19 Thread Enchy
Oops 'dependent' => 'true', that shoud be 'dependent' => true, Its still not working though. What do I need in my Controller? var $name = 'Students'; var $uses = array('Student', 'Tracking'); function delete($id) { $this->Student->del($id); $this->redirect('students'); }

Deleting from multiple not happening

2007-05-19 Thread Enchy
Hi, I am in a bit of a pickle , I have to finish this today and I have no idea why its not working I have a students table and then a tracking table. The tracking table stores the ids of the student being tracked and the person tracking the student. When a stdent gets deleted I also want the e

Re: Why do I have to define this?

2007-05-19 Thread Enchy
Thank you very much, Im still new to baking the cake and this is making it much simpler --~--~-~--~~~---~--~~ 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.co

Why do I have to define this?

2007-05-18 Thread Enchy
$this->set('telephone',$this->Order->findBySql("SELECT tel FROM suppliers WHERE id='$id'")); echo $telephone[0][suppliers][tel]; When I do this it moans that I have to define suppliers and tel --~--~-~--~~~---~--~~ You received this message because you are sub

Re: Want to add sum to sql

2007-05-18 Thread Enchy
m your db using php > mysql functions in a view helper...I'd recommend reading up on the > manual and some basic tutorials about cake, mvc, etc. > > On May 18, 9:13 am, Enchy <[EMAIL PROTECTED]> wrote: > > > > > Thanks > > > i endend up creating a reall

Re: Printing Variable in thtml

2007-05-18 Thread Enchy
Thanks alot. I had to ad a ['0'] On May 18, 2:53 pm, "Jon Bennett" <[EMAIL PROTECTED]> wrote: > > I have looked in the htmlhelper api and cant find anything for this. > > > echo $html->input('Order/dateoforder', array('size' => '53') > > > Htmlhelper just echos form elements I just want ec

Re: Want to add sum to sql

2007-05-18 Thread Enchy
functions in > conditionshttp://cakebaker.42dh.com/2007/05/04/how-to-use-sql-functions-in-cond... > > On May 18, 8:45 am, Enchy <[EMAIL PROTECTED]> wrote: > > > > > var $belongsTo = array( 'Orderitem' => > >

Re: Want to add sum to sql

2007-05-18 Thread Enchy
Thanks i endend up creating a really quick and dirty helper function _gettotal ($oid) { $total = ''; $sql = "SELECT price,quantity FROM Orderitems where oid='$oid'"; $rst= mysql_query($sql) or die("$sql".mysql_error()); while($row = mysql_fetch_array($rst)) { $total += $row['quantity']

Want to add sum to sql

2007-05-18 Thread Enchy
var $belongsTo = array( 'Orderitem' => array('className' => 'Orderitem', 'conditions'=> '', 'order' => 'item ASC', 'limit' => '',

Printing Variable in thtml

2007-05-18 Thread Enchy
Hi I have looked in the htmlhelper api and cant find anything for this. echo $html->input('Order/dateoforder', array('size' => '53') Htmlhelper just echos form elements I just want echo the value of Order/dateoforder onscreen. How do I do this, I looked in the API but cant find it. L --~--

Re: money_format?

2007-05-17 Thread Enchy
Resolved: "R".number_format($output['Order']['total'], 2, '.', ' ') On May 17, 5:36 pm, Enchy <[EMAIL PROTECTED]> wrote: > Hi > > money_format doesnt work when I run it in CakePHP > Is there any alternative I can use? > &

money_format?

2007-05-17 Thread Enchy
Hi money_format doesnt work when I run it in CakePHP Is there any alternative I can use? L --~--~-~--~~~---~--~~ 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@googlegrou

Re: Quick Dum Question

2007-05-15 Thread Enchy
I got it $pagination->sortBy('sname', 'Supplier', 'Supplier'), $pagination->sortBy('name','Customer','Customer'), On May 15, 2:03 pm, Enchy <[EMAIL PROTECTED]> wrote: > What do I change to this to get &

Quick Dum Question

2007-05-15 Thread Enchy
What do I change to this to get "sname" in my while loop? array('className' => 'Customer', 'conditions'=> '', 'order' => 'name ASC', 'limit' => '',

Display without index

2007-05-14 Thread Enchy
Hi I have seen it before where you dont have to create a index.thtml or edit. You just setup your controller and model and it automatically goes to a page where you can edit any column in your table. How is this done? Thanks L --~--~-~--~~~---~--~~ You received

Fancy File Delete

2007-05-08 Thread Enchy
Hi I have made a table called files. its for a uploader . You upload the files and details about the files get stored in database. The name of file gets stored in column "name" in files table The files are stored in a directory called files I would like to know what I add to this function to d

Delete function dont work after specifying Database

2007-05-08 Thread Enchy
Hi I had to specify my Database for my one app in Cake because it had uppercase letters Now all my other apps work and are exactly the same. When I want to delete something with this particular app I get a error saying that the controller is missing which is not. Has anybody had this same proble

Re: Passing variables in URl

2007-05-07 Thread Enchy
Oh nvm I discovered the set function. But now I have another problem , it blurts out an error if I dont send a variable. Does anybody have solution for this? L On May 7, 3:54 pm, Enchy <[EMAIL PROTECTED]> wrote: > Hi > > New to this. > > How do you pass variables

Passing variables in URl

2007-05-07 Thread Enchy
Hi New to this. How do you pass variables in the URL in cakephp index.php?/app/index/name/John Is this how you do it? and how do you print it in thml files Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

HOwto check session in thtml

2007-05-03 Thread Enchy
HI New to this . HOw do I check session in thtml if (!$this->Session->check('User')) That does not work. I am putting this at the top of default.thml for a logout button. Thanks L --~--~-~--~~~---~--~~ You received this message because you are subscribed to

Re: Sessions not carying over?

2007-05-02 Thread Enchy
I finally got it working. Cakephp was deleting my session everytime I went to login page somehow. I dont have delete session in the controller class UsersController extends AppController { var $name = 'Users'; var $scaffold; function index() { } function login()

Re: Sessions not carying over?

2007-05-02 Thread Enchy
Ok this is my login page: /admin/index.php/users/login When I redirect to: /admin/index.php/users/index I can print the session onscreen, so this means its working. But the moment I goto /admin/ The root of the site then the session does not appear. Anybody got a solution for this? --~--~--

Re: Sessions not carying over?

2007-05-01 Thread Enchy
Ok here is my problem. This is my login controller: if($success) { $this->Session->write('User', $someone['User']); $test = $this->Session->check('User'); $this->Session->setFlash("bs $test"); //$this->redirect('../');

Sessions not carying over?

2007-05-01 Thread Enchy
Hi I have created to controllers and they use two different tables each. These two controllers are basically copies of each other. I logged in and it goes to the first controller but when I go to second controller it says im not logged in anymore. Im using phpgacl: [code] var $gacl = array(

Re: Capital Letters in Database Tables

2007-05-01 Thread Enchy
Thank you , very new to cake, and couldn't find it through search. --~--~-~--~~~---~--~~ 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

Capital Letters in Database Tables

2007-05-01 Thread Enchy
Hi I see that CAkephp only works with tables that are name in lowercase. I have existing table Students and I really dont want to rename , how can I use These tables in Cake? L --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goo

Re: SWFupload

2007-04-23 Thread Enchy
Got it work thanks --~--~-~--~~~---~--~~ 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] F

SWFupload

2007-04-22 Thread Enchy
Hi I need some help with SWFupload for cakephp. Installed it here http://capeseo.com/admin/ The bottom form is a normal straightforward uploader. When you upload something with that it works and you can see results. The top one is the fancy flash uploader but it pretends to be working but when I

Re: PHPmailer

2007-03-27 Thread Enchy
yourself with this sort of thing. I promise it will make your life a > lot easier when you attempt to develop programs in CakePHP. > > On 3/26/07, Daniel Pape <[EMAIL PROTECTED]> wrote: > > > > > Is $this->Mailer an instance of class.phpmailer?? > > > 2

PHPmailer

2007-03-26 Thread Enchy
Hi I installed phpmailer Calling it like the tutorial says: vendor('phpmailer/class.phpmailer'); And then error: Call to undefined function: addaddress() in /usr/www/users/struts/cake/ app/controllers/hunters_controller.php on line 37 line 37: $this->Mailer->AddAddress('[EMAIL PROTECTED]');