Re: Joins Conditions Contain Question

2011-02-15 Thread John Andersen
Would it be possible to assign a status value of "Not applicable" (0) to the B notifications, thus you would be able to use a condition like Policy.status => array(0,1) AND Notification.user_id => $me or something similar :) Enjoy, John On 15 Feb., 22:27, "Krissy Masters" wrote: > This WILL s

Re: In "jp-graph" how to display value at the top of each bar graph.

2011-02-15 Thread Ryan Schmidt
On Feb 16, 2011, at 00:15, sanjibdhar...@gmail.com wrote: > By searching I got this link as an example > http://www.uaemex.mx/uniradio/jpgraph/docs/html/823Addingadropshadowtothebar.html#8_2_3 > > > In that link value is displaying.But when I copy pasted locally its > not working. Sounds like

In "jp-graph" how to display value at the top of each bar graph.

2011-02-15 Thread sanjibdhar...@gmail.com
By searching I got this link as an example http://www.uaemex.mx/uniradio/jpgraph/docs/html/823Addingadropshadowtothebar.html#8_2_3 In that link value is displaying.But when I copy pasted locally its not working. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.or

Re: Problem with insertBitmap function PEAR - cakephp

2011-02-15 Thread Ryan Schmidt
On Feb 15, 2011, at 23:23, rakeshyadav rakeshyadav wrote: > I am using PEAR classes to export my reports to excel i have some problem > with open office wile exporting bitmap images. This doesn't sound related to CakePHP. -- Our newest site for the community: CakePHP Video Tutorials http:/

Problem with insertBitmap function PEAR - cakephp

2011-02-15 Thread rakeshyadav rakeshyadav
Hi all, I am using PEAR classes to export my reports to excel i have some problem with open office wile exporting bitmap images. i keep my PEAR files in /app/vendors/Pear and my view file to export image to excel is send('Search_Export.xls'); $worksheet=&$workbook->addWorkshee

Re: Adding fields to a form dynamically - a complex case

2011-02-15 Thread Zaky Katalan-Ezra
So the librarian need to type only two values, right? Customer number (magnetic card), and books numbers (barcode). If so you can just use a text box with all the books numbers with comma separated like an email send to list. Do the rest in the database/model. -- Our newest site for the community

Re: Automagic on add()

2011-02-15 Thread lirc201
There is automagic! I needed to do $this->data instead of $this- >set('data', $data); l8r, Brian On Feb 15, 6:52 pm, lirc201 wrote: > I've developed a method for generating a $data array for a given model > so that I can prefill various fields on an add() form.  My users will > be using the add

Re: JsHelper request question

2011-02-15 Thread mark_story
On Feb 14, 5:12 am, Jens Dittrich wrote: > Hello, > > I have a problem understanding/using the $js->request() function. I > want to use it to get the value of an input field and send the value > on an event. But how do I get the value of the input field into the > requests parameter? My setup is l

Re: How to define a global constant which is available through whole app?

2011-02-15 Thread mark_story
Umm if you want a 'constant' why not use constant()? http://php.net/constant And if you need a constant on a class, why not use a class constant? Like AD7six said, CakePHP doesn't not stop you from using regular PHP. Also as an aside, Configure does not make constants.. -Mark On Feb 15, 7:52 p

Re: book.cakephp.org not showing table of contents?

2011-02-15 Thread Panupat
It is a javascript call. I don't know if this is the same as yours, but for me I have to allow script to have the sidebar shows up. (have noScript installed in my firefox) On Feb 16, 8:58 am, Josh Prowse wrote: > I'm not really sure if this is the place for this, but the CakePHP > site doesn't ma

book.cakephp.org not showing table of contents?

2011-02-15 Thread Josh Prowse
I'm not really sure if this is the place for this, but the CakePHP site doesn't make how to contact the web master obvious, so here I am. I love book.CakePHP.org but the recent design changes have completely borked the table of contents in Firefox (3.0.19), on Ubuntu (8.10). I have to maintain sit

Re: How to define a global constant which is available through whole app?

2011-02-15 Thread Miles J
Like AD7 said, you cant use functions on class properties. Do it in the constructor. On Feb 15, 3:36 pm, Alejandro Gómez Fernández wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Another way to do this is using session variables, in this case, a > constant. You can always access this

Re: move to new server

2011-02-15 Thread Shinya Koizumi
I did not have any access to ssh for this site so i didn't use baker at all. -- 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 unsubscrib

Re: cakephp on remote web server.

2011-02-15 Thread Romel Emperado
i just checked it now. the config folder is not present.. I downloaded many versions of cakephp and found out that the config folder under app is not present... hehe lol :) [?] thanks for your reply guys... hehe On Wed, Feb 16, 2011 at 8:21 AM, Sam Sherlock wrote: > you were perhaps missing di

Re: cakephp on remote web server.

2011-02-15 Thread Sam Sherlock
you were perhaps missing directories within the tmp/ persistent cache logs - S On 15 February 2011 23:58, Romel Emperado wrote: > hi guys.. I got it working.. I dont know what happen... hehe it just > work... lol.. > > I just replace new cakephp.. hehe > > On Wed, Feb 16, 2011 at 6:50 AM, S

Re: cakephp on remote web server.

2011-02-15 Thread Romel Emperado
hi guys.. I got it working.. I dont know what happen... hehe it just work... lol.. I just replace new cakephp.. hehe On Wed, Feb 16, 2011 at 6:50 AM, Sam Sherlock wrote: > tmp and everything within it > > for more info > http://book.cakephp.org/comments/31 > > > sorry its my first time in cakeph

Automagic on add()

2011-02-15 Thread lirc201
I've developed a method for generating a $data array for a given model so that I can prefill various fields on an add() form. My users will be using the add form often and I would like default values in there based on $data being pulled from a Settings model. I've tested and $data[Model][paramete

Re: How to define a global constant which is available through whole app?

2011-02-15 Thread Alejandro Gómez Fernández
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Another way to do this is using session variables, in this case, a constant. You can always access this var in every module. Alejandro. El 15/02/2011 10:52, sanjibdhar...@gmail.com escribió: > I tried Configure::write('company', 'xxx); in boots

Re: Adding fields to a form dynamically - a complex case

2011-02-15 Thread Alejandro Gómez Fernández
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 You need to do this with javascript. May be jquery with grid plugin? Create an array with the fileds you need and then send the array to the controller. Alejandro Gómez Fernández El 15/02/2011 14:56, Yaron escribió: > Hi, > Suppose I have a book

Re: FPDF: pass variable from controller to view

2011-02-15 Thread Ryan Schmidt
On Feb 15, 2011, at 11:05, Antar wrote: > I am using $this->redirect() which explains why I lose the values. Is there > an alternative to $this->redirect()? .redirect means "go to another page and start a completely separate request". If you don't want to go to another page and start a com

Re: Can't Save German to Database

2011-02-15 Thread Ryan Schmidt
On Feb 15, 2011, at 13:41, andrewperk wrote: > I'm trying to save a block of german text into my application. It > allows users to ask questions and users to answer. Most of the website > is in german. The database charset is utf-8 and collation is > utf-8_general_ci. > > My application saves mo

Re: database.php.default, extra comma at the end?

2011-02-15 Thread euromark
i'd say it is totally irrelevant :) On 15 Feb., 20:08, MissYeh wrote: > Whether you leave it or not should not matter. PHP can handle both. Whether > is a good practice to leave or remove it is a different topic :) -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp

Re: how to pass data from controller or view to javascript

2011-02-15 Thread cricket
On Tue, Feb 15, 2011 at 5:31 PM, netusco wrote: > in the book I had found the function set() from JsHelper but there's no > examle there... > > googleing I found an example that doesn't work for me... it's like this: > > after loading Js Helper on the controller... > > $this->Js->set('someTest', '

Re: move to new server

2011-02-15 Thread cake-learner
error message on firefox "The page isn't redirecting properly" and when i look at in fiddler it's trying to go back to root(mydomain.com/) 20 times -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.or

Re: cakephp on remote web server.

2011-02-15 Thread Sam Sherlock
tmp and everything within it for more info http://book.cakephp.org/comments/31 sorry its my first time in cakephp and in linux ;( > no trouble I figured that; which is why a suggested to use ftp program (filezilla is a great option) if your offay with commandline that is better to use but harder

Re: move to new server

2011-02-15 Thread Estevam
i presume you made your app with the cake console. so you have to copy your app to the server and the cake core. if you bake your application and the cake core is on other folder of you pc you need to change this archives: they are absolute paths, but you just have to change this: app/webroot/ind

Re: move to new server

2011-02-15 Thread Sam Sherlock
try reuploading the htaccess some servers require rewrite base (you would need to add subdirectory to it if in a subdir and using rewritebase) try using fresh htaccess files - S On 15 February 2011 22:38, cake-learner wrote: > yes seems like all files are there. I see router.php is there.

Re: move to new server

2011-02-15 Thread cake-learner
yes seems like all files are there. I see router.php is there. yes i was developing the app on the other server. only difference is htaccess files .htaccess root "empty" app/ RewriteEngine on RewriteBase / RewriteRule^$webroot/[L] RewriteRule(.*) webroot/$1

Re: cakephp on remote web server.

2011-02-15 Thread Romel Emperado
oh thanks I understand but what directory in cake php I should revise the permission? sorry its my first time in cakephp and in linux ;( On Tue, Feb 15, 2011 at 5:23 PM, Sam Sherlock wrote: > Permissions control what processes have permission to read,write and > execute directories and files with

how to pass data from controller or view to javascript

2011-02-15 Thread netusco
in the book I had found the function set() from JsHelper but there's no examle there... googleing I found an example that doesn't work for me... it's like this: after loading Js Helper on the controller... $this->Js->set('someTest', 'amazing discovery'); alert('Set in the CakePHP view using Js

Re: cakephp on remote web server.

2011-02-15 Thread Sam Sherlock
Permissions control what processes have permission to read,write and execute directories and files within them most ftp programs let you set them (for files or folders by right clicking) this may help you http://permissions-calculator.org/ 777 should get it working but you'll want something mor

Re: cakephp on remote web server.

2011-02-15 Thread Romel Emperado
I just check the file and it's all copied... what do you mean by permission? On Tue, Feb 15, 2011 at 11:45 AM, John Andersen wrote: > Verify that you copied all the files to the web server! > Including the .htaccess files! > Enjoy, >John > > On 15 Feb., 14:32, melro wrote: > > guys I have qu

Re: move to new server

2011-02-15 Thread Sam Sherlock
wow! and you have the libs/ dir in cake/ are you certain that the files transfered correctly? did you make the app that was working on previous server? - S On 15 February 2011 21:59, cake-learner wrote: > After setting debug to 2, > > Fatal error: Class 'Router' not found in /home/gowe

Re: move to new server

2011-02-15 Thread cake-learner
After setting debug to 2, Fatal error: Class 'Router' not found in /home/gowerk/public_html/dev/ cake/dispatcher.php on line 281 -- 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

Re: move to new server

2011-02-15 Thread Sam Sherlock
your getting a blank page with debug set to 2? have you got access to error logs - S On 15 February 2011 21:33, cake-learner wrote: > I debug and removed all errors, but now it doesn't show any thing but > a blank page. > > /* SVN FILE: $Id$ */ > /** > * Short description for file. > *

Re: INVITATION TO JOB FAIR

2011-02-15 Thread Jeremy Burns | Class Outfit
Just delete it. Jeremy Burns Class Outfit jeremybu...@classoutfit.com http://www.classoutfit.com On 15 Feb 2011, at 21:13, Robert J. Maiolo wrote: > and this is why I hate joining email lists... > > On Mon, Feb 14, 2011 at 6:30 AM, job fair wrote: > AMA Business JOB FAIR on 26 & 27 Feb @ Pala

Re: move to new server

2011-02-15 Thread cake-learner
I debug and removed all errors, but now it doesn't show any thing but a blank page. http://cakephp.org) * Copyright 2005-2010, Cake Software Foundation, Inc. (http:// cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice. * *

Re: move to new server

2011-02-15 Thread Sam Sherlock
echo ROOT; as Miss Yeh is saying another set of wierd issues after fixing the first thing echo ""; echo dirname(dirname(__FILE__)); echo ""; echo CAKE_CORE_INCLUDE_PATH; the first 2 should be same; please decribe you dir structure? I assume the answer to Miss Yeh question is that the directory

Re: move to new server

2011-02-15 Thread MissYeh
Yes, you are heading in the right direction. The CAKE_CORE_INCLUDE_PATH should be the path where your cake folder is located ("cake/bootstrap.php") is located. You might need to debug the value to see if that is the correct value. -- Our newest site for the community: CakePHP Video Tutorials

Joins Conditions Contain Question

2011-02-15 Thread Krissy Masters
This WILL sound complicated. Policy hasMany Notification / Notification belongsTo Policy Now the Notification can be A. internal (relating to specific content in the site, so the data is gathered directly , created by logged in user, what page Policy it pertains, other policy info, n

Re: move to new server

2011-02-15 Thread MissYeh
Where does CakePHP live on the server? Outside or inside the regular CakePHP structure? Like the DS problem, it seems now that the CAKE_CORE_INCLUDE_PATH is not defined. You will have to specify where CAKE_CORE_INCLUDE_PATH should point to, eg what is the (full) path to cake/bootstrap.php? --

Re: move to new server

2011-02-15 Thread cake-learner
No I have been trying to get it working and CAKE_CORE_INCLUDE_PATH is not define. Should be like this? if (!defined('ROOT')) { define('ROOT', dirname(dirname(__FILE__))); } if (!defined('CAKE_CORE_INCLUDE_PATH')) { define('CAKE_CORE_INCLUDE_PATH', ROOT); } -- Our newest site for

Re: INVITATION TO JOB FAIR

2011-02-15 Thread Robert J. Maiolo
and this is why I hate joining email lists... On Mon, Feb 14, 2011 at 6:30 AM, job fair wrote: > AMA Business JOB FAIR on 26 & 27 Feb @ Palace Ground.Exp-0-7yrs.Onspot > hiring upto 2000 JObs.Resume at resume@gmail.com.fwd IT 2 UR FRND > > > Dear Friends > AMA Business is organizing an IT jo

Re: move to new server

2011-02-15 Thread Sam Sherlock
Sorry I meant have you seen cake working on the server your moving to? - S On 15 February 2011 21:07, cake-learner wrote: > yes it worked on another server, but having the problem after moving > files to another server. > > -- > Our newest site for the community: CakePHP Video Tutorials >

Re: INVITATION TO JOB FAIR

2011-02-15 Thread Sam Sherlock
spamor worse a scam to get personal details send your resume - S On 15 February 2011 21:08, bdwilton wrote: > Looks like spam to me. > > Either that or AMA should have the clown that wrote the email's job up for > replacement at the same fair. > > > On 16/02/2011 9:30 a.m., confidentia...@gm

Re: move to new server

2011-02-15 Thread Sam Sherlock
is the path to cake core correct Check the value of > CAKE_CORE_INCLUDE_PATH in APP/webroot/index.php > > - S On 15 February 2011 21:03, cake-learner wrote: > Check the value of > CAKE_CORE_INCLUDE_PATH in APP/webroot/index.php > -- Our newest site for the community: CakePHP Video Tutoria

Re: move to new server

2011-02-15 Thread cake-learner
yes it worked on another server, but having the problem after moving files to another server. -- 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

Re: INVITATION TO JOB FAIR

2011-02-15 Thread bdwilton
Looks like spam to me. Either that or AMA should have the clown that wrote the email's job up for replacement at the same fair. On 16/02/2011 9:30 a.m., confidentia...@gmail.com wrote: What city is this in? Sent from my BlackBerry device on the Rogers Wireless Network -- Our newest site for

Re: move to new server

2011-02-15 Thread cake-learner
I gotta this because CORE_PATH is not define, either. Warning: include(cake/bootstrap.php) [function.include]: failed to open stream: No such file or directory in /home/gowerk/public_html/dev/ app/webroot/index.php on line 57 Warning: include(cake/bootstrap.php) [function.include]: failed to open

Re: move to new server

2011-02-15 Thread Sam Sherlock
> > it skips index.php on the root and came to webroot/ > index.php > that should be fine; I assume that you have seen cake working on the live server before - S On 15 February 2011 20:53, cake-learner wrote: > It seems that it skips index.php on the root and came to webroot/ > index.p

Re: move to new server

2011-02-15 Thread MissYeh
As far as I know that should be ok (but don't pin me down on it). The index in root calls webroot/index.php Most paths in this webroot/index.php file rely on DS. In the warnings you showed in your first message, it is very clear that DS is not returning the correct value. So it doesn't know tha

Re: move to new server

2011-02-15 Thread cake-learner
It seems that it skips index.php on the root and came to webroot/ index.php -- 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

Re: move to new server

2011-02-15 Thread cake-learner
and also CORE_PATH is not defined. I think what happen is that it skips index.php on root and came to webroot/index.php because of how I change htaccess is defined. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http:

Re: INVITATION TO JOB FAIR

2011-02-15 Thread confidential99
What city is this in? Sent from my BlackBerry device on the Rogers Wireless Network -Original Message- From: job fair Sender: cake-php@googlegroups.com Date: Mon, 14 Feb 2011 06:30:19 To: CakePHP Reply-To: cake-php@googlegroups.com Subject: INVITATION TO JOB FAIR AMA Business JOB FAIR o

Re: move to new server

2011-02-15 Thread MissYeh
Perhaps DS is defined somewhere else. Try putting the code in the webroot/index.php file if (!defined('DS')) { define('DS', DIRECTORY_SEPARATOR); } Place it just before: if (!defined('WEBROOT_DIR')) { define('WEBROOT_DIR', basename(dirname(__FILE__))); } See what happens..

Re: Pagination w/ query data in url for initial search submission not holding but all subsequent pages have url params

2011-02-15 Thread OldWest
I should clarify: I removed the footer instance of: options = array('url'=>$searchdetails); ?> And just kept the header instance. Seems to be working as expected now : ) -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions sit

Re: Pagination w/ query data in url for initial search submission not holding but all subsequent pages have url params

2011-02-15 Thread OldWest
SOLVED it! In my view, I had an instance of: options = array('url'=>$searchdetails); ?> below my paginator counter near the page footer. I took the same: options = array('url'=>$searchdetails); ?> And placed it in the header of my view, and it solved the issue. It appears the vars were not

Re: Can't Save German to Database

2011-02-15 Thread andrewperk
I've found something else out. It appears to be a length issue. If I cut that paragraph in half it saves it just fine. It's being saved to a text type field in the database. I'm not setting a maximum length on it either though. This is my only validation: 'content' => array( 'MustB

Can't Save German to Database

2011-02-15 Thread andrewperk
Hello, I'm trying to save a block of german text into my application. It allows users to ask questions and users to answer. Most of the website is in german. The database charset is utf-8 and collation is utf-8_general_ci. My application saves most german just fine to the database. But when tryin

Pagination w/ query data in url for initial search submission not holding but all subsequent pages have url params

2011-02-15 Thread OldWest
How can I get the paramaters passed to the url on the first submission? All subsequent pagination requests (such as when I hit Next>>) display the proper url parameters like (/35/0/...): .../Plans/search/35/0/0/0/97378/page:2 But on the first search results page, the parameters are not passed

Re: move to new server

2011-02-15 Thread cake-learner
On Feb 15, 11:04 am, MissYeh wrote: > It seems that the script is unaware what value DS is, it should be a slash. > > Is the following code present in the webroot/index.php file before line 52? > >         if (!defined('DS')) { >                 define('DS', DIRECTORY_SEPARATOR); >         } I

Re: database.php.default, extra comma at the end?

2011-02-15 Thread MissYeh
Whether you leave it or not should not matter. PHP can handle both. Whether is a good practice to leave or remove it is a different topic :) -- 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 h

Re: move to new server

2011-02-15 Thread MissYeh
It seems that the script is unaware what value DS is, it should be a slash. Is the following code present in the webroot/index.php file before line 52? if (!defined('DS')) { define('DS', DIRECTORY_SEPARATOR); } -- Our newest site for the community: CakePHP Video

Re: $this->Html vs $html

2011-02-15 Thread euromark
ähm... search?! just two days ago: http://groups.google.com/group/cake-php/browse_thread/thread/07b13c34e8950c46# On 15 Feb., 19:18, Tan Cheng wrote: > Hi everyone, > > I'm a newbie to cakePHP, a question I always have is in the tutorial > in 1.3 cookbook, the html helper always appears as "$th

database.php.default, extra comma at the end?

2011-02-15 Thread Panupat
After 'prefix' there's a comma there. For my own array should I leave the comma there or should I remove it? var $default = array( 'driver' => 'mysql', 'persistent' => false, 'host' => 'localhost', 'login' => 'user',

Re: $this->Html vs $html

2011-02-15 Thread Miles J
It sounds as if 1.3 isn't really running. I would check your paths and everything to make sure they are correct and are in fact running 1.3. On Feb 15, 10:18 am, Tan Cheng wrote: > Hi everyone, > > I'm a newbie to cakePHP, a question I always have is in the tutorial > in 1.3 cookbook, the html he

Matt Curry asset helper

2011-02-15 Thread Krissy Masters
Has anyone has success with this helper in the way I am attempting to you it. Cake v1.3.7 Layout template: css(array('styles','typography', 'jquery.fancybox-1.3.4'), null, array( 'inline' => false ) ); ?> link( array( 'jquery-1.4.2.min' ), false ); ?> scripts_for_layout();?> In additiona

$this->Html vs $html

2011-02-15 Thread Tan Cheng
Hi everyone, I'm a newbie to cakePHP, a question I always have is in the tutorial in 1.3 cookbook, the html helper always appears as "$this->Html", but it never worked in my application. But when I change it to "$html", it works just fine. This is the same with all the other helpers. I only added

Adding fields to a form dynamically - a complex case

2011-02-15 Thread Yaron
Hi, Suppose I have a book-borrowing application with a Customers table, a Books table and Borrowings table (customer_id, book_id and date fields). The borrowing view has three fields: customer, date and book (this field is a drop-down-box). Usually, a customer borrows more than a single book at onc

Re: cakephp on remote web server.

2011-02-15 Thread Vivi Vivi
Check also the folder permisions. On Tue, Feb 15, 2011 at 6:48 PM, John Andersen wrote: > Also make sure that you have the whole CakePHP structure on the web > server! > Enjoy, > John > > On 15 Feb., 17:45, John Andersen wrote: > > Verify that you copied all the files to the web server! > > In

move to new server

2011-02-15 Thread cake-learner
*I just moved my cakephp app to new server and have some configuration issue. I got the following message and need to specify the `* CAKE_CORE_INCLUDE_PATH` but can`t find any place to specify. Can I just add to core.php? *Warning*: include(cakeDSbootstrap.php) [function.include

Re: FPDF: pass variable from controller to view

2011-02-15 Thread Antar
I am using $this->redirect() which explains why I lose the values. Is there an alternative to $this->redirect()? -- 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 CakeP

Re: FPDF: pass variable from controller to view

2011-02-15 Thread sanjib dhar
controller: $this->layout = 'pdf'; //this will use the pdf.thtml layout $d=$this->Far->query("Select contractors.name, fars.item_name, fars.moulding_nos, fars.item_category, fars.item_unit, fars.item_size, fars.cast_weight >From fars Inner Join contractors On fars.contracto

Re: FPDF: pass variable from controller to view

2011-02-15 Thread John Andersen
When you make a redirect - here I assume that you are using $this- >redirect(...) to invoke another method - then you are in fact making a new call to your application, thus loosing all the information you just sent to the view. Either change your flow or store the information temporary for the ot

Re: FPDF: pass variable from controller to view

2011-02-15 Thread Antar
The controller redirects to the view which will create the PDF and then shows the Notice (8) undefined variable error. The error message doesn't appear without the "echo" but all other code in the view is commented out at this stage so that all the view is doing is the echo. On Feb 15, 4:43 pm, Jo

Re: FPDF: pass variable from controller to view

2011-02-15 Thread Antar
I see the Notice (8) Undefined variable error when the controller redirects to the form with the FPDF details. On Feb 15, 4:25 pm, Antar wrote: > In my controller: > > $reprint = "SELECT distinct round FROM vw_del_details where date = > '".$ddate."' AND round BETWEEN ".$r_from." AND ". $r_to; >

Re: cakephp on remote web server.

2011-02-15 Thread John Andersen
Also make sure that you have the whole CakePHP structure on the web server! Enjoy, John On 15 Feb., 17:45, John Andersen wrote: > Verify that you copied all the files to the web server! > Including the .htaccess files! > Enjoy, >    John > [snip] -- Our newest site for the community: CakePHP

Re: cakephp on remote web server.

2011-02-15 Thread John Andersen
Verify that you copied all the files to the web server! Including the .htaccess files! Enjoy, John On 15 Feb., 14:32, melro wrote: > guys I have question about cakephp setup on the remote web server.. > > I installed cakephp on my local server with xamp and it's working fine > but when I trans

Re: FPDF: pass variable from controller to view

2011-02-15 Thread John Andersen
Where does it give you an undefined variable error? Do the error disappear, when you comment out the echo statement? Enjoy, John On 15 Feb., 17:25, Antar wrote: > In my controller: > > $reprint = "SELECT distinct round FROM vw_del_details where date = > '".$ddate."' AND round BETWEEN ".$r_fro

Re: How to define a global constant which is available through whole app?

2011-02-15 Thread AD7six
On Feb 15, 4:32 pm, sanjib dhar wrote: > config/bootstrap.php : > Configure::write('company', 'xxx'); > > appcontroller: > * > class AppController extends Controller { > var $helpers = array('Html', 'Form', 'Javascript', > 'Session','fpdf','PhpSpeedy'); > var $company = Configure::read('company'

Re: FPDF: pass variable from controller to view

2011-02-15 Thread Antar
In my controller: $reprint = "SELECT distinct round FROM vw_del_details where date = '".$ddate."' AND round BETWEEN ".$r_from." AND ". $r_to; $this->set('rp',$reprint); In my view: echo $rp; which gives an undefined variable error -- Our newest site for the commun

Re: FPDF: pass variable from controller to view

2011-02-15 Thread sanjib dhar
Simply try this $this->set('variable',$variable); $variable may be value or array(); On Tue, Feb 15, 2011 at 9:27 PM, John Andersen wrote: > You can pass data to the view as described in the CakePHP book here: > http://book.cakephp.org/view/978/Interacting-with-Views > > Enjoy, >John > > On

Re: FPDF: pass variable from controller to view

2011-02-15 Thread John Andersen
You can pass data to the view as described in the CakePHP book here: http://book.cakephp.org/view/978/Interacting-with-Views Enjoy, John On 15 Feb., 16:55, Antar wrote: > I have a view that gathers user data and passes it to a controller where an > SQL select statement is built. I now need to

FPDF: pass variable from controller to view

2011-02-15 Thread Antar
I have a view that gathers user data and passes it to a controller where an SQL select statement is built. I now need to pass this statement to the view that creates the report. What is the best way to pass a variable from a controller to a view? Thanks -- Our newest site for the community: C

cakephp on remote web server.

2011-02-15 Thread melro
guys I have question about cakephp setup on the remote web server.. I installed cakephp on my local server with xamp and it's working fine but when I transfer my work to the remote server in /var/www it wont show something, only blank page.. my server is working when i tried another framework onl

Re: How to define a global constant which is available through whole app?

2011-02-15 Thread Stephen
You should be able to call "Configure::read('company');" in your app where ever you need it. I've never tried it with var in the app controller. On 15 February 2011 15:32, sanjib dhar wrote: > config/bootstrap.php : > Configure::write('company', 'xxx'); > > appcontroller: > * > class AppControl

Re: How to define a global constant which is available through whole app?

2011-02-15 Thread sanjib dhar
config/bootstrap.php : Configure::write('company', 'xxx'); appcontroller: * class AppController extends Controller { var $helpers = array('Html', 'Form', 'Javascript', 'Session','fpdf','PhpSpeedy'); var $company = Configure::read('company'); } Error : * *Parse error*: parse error, expecting `',''

Re: How to define a global constant which is available through whole app?

2011-02-15 Thread mikek
It looks like theres a missing single quote in your Configure::write('company', 'xxx) which will cause the error you are getting. > Some more info would help us help you. Can you show the actual error? > > Jeremy Burns > Class Outfit > > jeremybu...@classoutfit.com > http://www.classoutfit.com >

Re: How to define a global constant which is available through whole app?

2011-02-15 Thread Jeremy Burns | Class Outfit
Some more info would help us help you. Can you show the actual error? Jeremy Burns Class Outfit jeremybu...@classoutfit.com http://www.classoutfit.com On 15 Feb 2011, at 15:14, sanjib dhar wrote: > Hi! > I got unfinished class declaration error. > > On Tue, Feb 15, 2011 at 8:10 PM, Stephen

Re: How to define a global constant which is available through whole app?

2011-02-15 Thread sanjib dhar
Hi! I got unfinished class declaration error. On Tue, Feb 15, 2011 at 8:10 PM, Stephen wrote: > What error message do you get? Configure is usually the way to go. > > On 15 February 2011 13:52, sanjibdhar...@gmail.com < > sanjibdhar...@gmail.com> wrote: > >> I tried Configure::write('company', '

Re: How to define a global constant which is available through whole app?

2011-02-15 Thread Stephen
What error message do you get? Configure is usually the way to go. On 15 February 2011 13:52, sanjibdhar...@gmail.com wrote: > I tried Configure::write('company', 'xxx); in bootstrap.php and to > access the constant I wrote > var $company = Configure::read('company'); in AppController but it > g

Re: JsHelper request question

2011-02-15 Thread Jens Dittrich
debug($this->params) gives me the return value of $('input').val() as a key, not a value. The value is empty. On 15 Feb., 13:34, "Dr. Tarique Sani" wrote: > On Mon, Feb 14, 2011 at 3:42 PM, Jens Dittrich wrote: > > Whe using: > > $this->Js->get('input')->event('click', $this->Js->request( > >  a

Re: Containable usage will not allow population of associated model view file data. Only find('all') is working. I am doing something wrong?

2011-02-15 Thread Stephen
It's always the most simple mistakes that have us searching for complex issues for well over an hour, missing an "s" really did cause a headache (as per your other thread) :( On 15 February 2011 14:02, OldWest wrote: > And I probably had a typo when using set() : ) .. My mind was mud after the >

Can't seem to write to session in the login function

2011-02-15 Thread barricades
Hi there, I'm learning as I go along here following various tutorials. I'm using cakephp1.3 and I'm trying to sort out a auth and acl system. I have a login function, a register function and a regcampaign function (which allows registered users who can pass an acl check to create a 'campaign') Whe

Re: Containable usage will not allow population of associated model view file data. Only find('all') is working. I am doing something wrong?

2011-02-15 Thread OldWest
And I probably had a typo when using set() : ) .. My mind was mud after the 5th hour on this! -- 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 question

How to define a global constant which is available through whole app?

2011-02-15 Thread sanjibdhar...@gmail.com
I tried Configure::write('company', 'xxx); in bootstrap.php and to access the constant I wrote var $company = Configure::read('company'); in AppController but it gives syntax error.Can somebody tell me how to access the constant or there is another way of to define a global constant through whole

Re: Containable usage will not allow population of associated model view file data. Only find('all') is working. I am doing something wrong?

2011-02-15 Thread OldWest
Hi Jeremy, Thanks for the note : ) There was nothing wrong in the view. The proper data was never making it from the controller to the view. The controller debug() did display the array correct as you saw, but for some reason it was not being passed to the view. I know my foreach loop and vars

RE I/r/0

2011-02-15 Thread Avishek Kumar Singh
Hey, how are you doing recently? I would like to introduce you a very good company and its website is < www.hrkfdero.net > Here we can offer many brands shoes, bags, jeans and so on, with low price and high quality,brand name such as Nike, Adidas, Jordan, Puma, Gucci, Prada, Chanel, Louis Vuitto

Re: oracle 10g connection with cakephp 1.3

2011-02-15 Thread majna
and remember to use 'charset' key for oracle instead of 'encoding' if needed :( On Feb 15, 11:05 am, Zaky Katalan-Ezra wrote: > I did it this way: > Install xammp > 1.enable "extension=php_oci8.dll" in php.ini > > 2.Set database.php > > var $default = array('driver' => 'oracle', >              '

Re: New vs Old and need help - FEMALE NEEDS HELP!

2011-02-15 Thread designv...@gmail.com
Its because they dont have more info - it's like a knee jerk reaction, it doesn't work - ask someone to fix it. You can see the same questions repeatedly asked on verious sites by the same person. My guess is they give up and just hack it together, no interest in learning, just getting paid. I g

  1   2   >