Hi Bill,
First a double check: Is the component Findcost only related to the
controller Costs? If so it might be easier to manage and cleaner code
to write the functionality into a method on the Costs controller.
If it is used by more than one controller then I think will do what you
want:
clas
WTF!On 4/8/06, cmrowley <[EMAIL PROTECTED]> wrote:
Below is a testimony from someone who apparently has made some quickbucks by taking a few steps and spending US Dollar 8.04 in total. I amgoing to try and see for myself. After all, the author of this article
is right, you have nothing to lose but
Hello
I've been using cake 0.9.1, and recently updated both php and cake at
my localhost :)
But i ran into problems right after creating example layout, controller
and it's view. I get layout rendered, but $page_title and
$content_for_layout are not being replaced by variable and view
content. I
On 4/7/06, Olwen Williams <[EMAIL PROTECTED]> wrote:
>
> I do it GET with a very simple layout.
>
> My cron job simply runs GET full_url_here > /dev/null
I'm not a real big fan of that approach, as it makes my cron job
available to anybody who might know the URL, or I have to somehow
restrict in
Nate, this appeared to work until I got to the show() action, which
lists all the Menus. There are over 300 menus in the table, and when
Cake tries to find all the product data for each of the 34 product
fields for each of the 300 menus, it chokes. It can't complete the
request. I get a server err
I am an expert PHP/MySQL Developer with 5 years of experience. Please
read my job request and if you are unable to hire me at this time, I
would really appreciate if you can forward this resume to somebody who
might be interested.
What do I seek?
I am looking for a full-time telecommuting job as
Is there a way to access the Model, to make Database calls inside of a
component?
class CostsController extends AppController
{
var $name = 'Costs';
var $components=array("Findcost");
function index()
{
//Do i send a reference to model this way?
$this->Component->calcu
Uh, this is the *Cake* mailing list, and that code does *not* look like
Cake.
However, I'd be willing to bet that your problem is that you need to
insert an " AS " between carriers and carr in the query above.
--~--~-~--~~~---~--~~
You received this message becau
Code Igniter seems very hip and lightweight, and I much prefer it to
almost all the other frameworks out there, but I was disappointed by
the fact that it still requires a lot of extra redundant code, even for
simple things like request dispatching, database calls, and creating
correspondence betw
I think you're looking for something more like this:
http://api.cakephp.org/class_view.html#54f7a2fbe1215f970dff3132730ab1f1
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group,
By default, Cake will cache the results of a query, and if that query
is executed again during the same request, Cake will return the cached
results. You can disable this behavior on a per-model basis by adding
the following to your model:
var $cacheQueries = false;
--~--~-~--~
kumas, I'd be interested to hear what you think the advantages and
drawbacks of Cake and Symfony are.
--~--~-~--~~~---~--~~
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@g
I do it GET with a very simple layout.
My cron job simply runs GET full_url_here > /dev/null
On 08/04/06, shaunster <[EMAIL PROTECTED]> wrote:
>
> I appologize if this is a simple question but I'm not very familiar
> with the PHP command line interface.
>
> Anyone know how I can exectute CakePHP
select count(distinct(carr.iCarrierId)) as tot from carriers carr where
1=1
I am getting "query fail" error for above query
$sql_select_sel = "select count(distinct(".$field_arr_inc[0][0].")) as
tot from $tablename $ssql";
$db_select_rs = $obj->sql_query($sql_select_sel);
function sql_query($
There's a project i've been wanting to implement for a couple of
month.. and i've been wandring from framework to framework.. i tried
symphony.. but i had alot of trouble to get it working.. it was
sometime ago.. dunno if it changed. i also tried prado.. but i guess i
was too lazy to digg deap int
I used Code Ignitor (www.codeigniter.com) before moving to cake. It's
by the same folks who did Expression Engine, probably technically not
open source, but it feels like it. I really loved it for it's
simplicity of language. I felt like the code I wrote with it was more
elegant than with cake--le
Rafael Apocalypse wrote:
> Not starting a discussion about what is better than what... for me
> cake is better just because symfony needs a root permission to install
> at the server, it just don't run like cake runs, just put a 'folder'
> inside your host and that's it, running!
>
Nope. You don
I need to record every change made to the data of a certain table, so
I created two tables to store these changes:
entities => id, name
change_history => id, entity_id, user_id, column, old_value, new_value, created
Before calling "save", I call "find" to return the current values of
the row tha
I have a some place on the page, what must contain a login form, if
user is not registered, and a information about user, if user is
registered. How can I do it with help of component or different way?
--~--~-~--~~~---~--~~
You received this message because you ar
Not starting a discussion about what is better than what... for me
cake is better just because symfony needs a root permission to install
at the server, it just don't run like cake runs, just put a 'folder'
inside your host and that's it, running!
RA
On 4/7/06, nate <[EMAIL PROTECTED]> wrote:
>
No offense taken. I was not aware of the previous post. Thank you for
clarifying.
--~--~-~--~~~---~--~~
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
nate wrote:
> Cake is just as flexible, if not more so. Look at
> app/webroot/index.php and cake/config/paths.php. Also, in
> app/config/bootstrap.php, it is possible to actually define more than
> one location from which to load models and controllers
Yes I know. Actually I used both cake and
Try...
SubArea hasMany Branch
Company hasMany Branch
Branch belongsTo SubArea (fk sub_area_id)
Branch belongsTo Company (fk company_id)
--
Andy W
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
I think the simplest thing to do would be to write a little wrapper
script that sets $_GET['url'] with the controller/action that you want
to dispatch, and then include the index.php that's located at the root
of your Cake install.
You could even have the script accept a path from the command lin
Jon, that's actually what i did.. perhaps the names of the tables
aren't very explicit because i came up with the many branches/company
later.. here's my structure
i have three tables:
subarea:
subarea belongs to an area which belongs to a city.. but each branch
will just belong to one subarea
Hi gobblez,
I've updated the wiki after testing the code - sorry for syntax errors,
I don't usually publish code without testing, but at 1 in the morning I
decided that my quick effort to address this point should wait for
another day.
_getControllerName is now defined.
"$something = depth==1?'
Hey ABC! How about you put a specific forum for CakePHP at ABC so
people can realize that if they aren't using a framework for PHP (more
specifically CakePHP) then they are crazy, stupid, and should quite PHP
programming.
--~--~-~--~~~---~--~~
You received this m
Oh really?!?!?! So, I could make an addon to a program and have it
read now from two directories. Oh that is nice.
And yes I have my cake directory actually IN my app directory. This
way when i upload I upload only one folder to install my app. Really
nice feature that got added recently. I
I appologize if this is a simple question but I'm not very familiar
with the PHP command line interface.
Anyone know how I can exectute CakePHP code via command line? I would
like to create a cron job that executes specific code within my
controller but other than having the cron use wget to run
Thanks, Nate. You've been my saving grace on this project!
I ended up having to put almost all 34 in separate manual find()
actions, because of recursion I needed on other associations in the
Menu class, but it eventually worked!
--~--~-~--~~~---~--~~
You receive
I'll try that!
On 4/7/06, Nando Vieira <[EMAIL PROTECTED]> wrote:
>
> Hi RA.
>
>
> Configurar diretórios virtuais é baba!
>
>
> To configure vhosts/mod_rewrite on Apache:
>
> 1) Open httpd.conf
> - Uncomment the lines
> #LoadModule rewrite_module modules/mod_rewrite.so
> #Lo
Hi RA.
Configurar diretórios virtuais é baba!
To configure vhosts/mod_rewrite on Apache:
1) Open httpd.conf
- Uncomment the lines
#LoadModule rewrite_module modules/mod_rewrite.so
#LoadModule vhost_alias_module modules/mod_vhost_alias.so
#NameVirtualHost *:80
-
On 4/7/06, Mika <[EMAIL PROTECTED]> wrote:
> Seems to be working for me.
> I've registered on Cakeforge as Mika.
Well, I think they changed the hosting, because yesterday it gave me
only a Fedora welcome page and today it's not getting session files to
open.
I Can get to the Home page but files I
Hi,
Is there a way to use cake in Iss withou mode_rewrite? My test machine
is a winXP with iis and php5, mysql 4. And my webhost is a fedora with
apache.
Run apache in my windows it's a lot painfull to me, because the
virtual directorys configuration, that I never could make work.
RA
--
Rafael
Hi,
Is there a way to use cake in Iss withou mode_rewrite? My test machine
is a winXP with iis and php5, mysql 4. And my webhost is a fedora with
apache.
Run apache in my windows it's a lot painfull to me, because the
virtual directorys configuration, that I never could make work.
RA
--
Rafael
Cake is just as flexible, if not more so. Look at
app/webroot/index.php and cake/config/paths.php. Also, in
app/config/bootstrap.php, it is possible to actually define more than
one location from which to load models and controllers.
--~--~-~--~~~---~--~~
You re
I saw your wiki post.
I get an error from the helper on line 41, ' ; ' unexpected semicolon.
Not sure why, I just copy and pasted.
Also i see you use this function, _getControllerName($Menu[0]). but I
can't see you defining it anywhere, and didn't find it anywhere in the
cakephp.org/search as a
Hi Gustavo,
Seems to be working for me.
I've registered on Cakeforge as Mika.
Thanks for doing this,
Cheers,
Mladen
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send ema
guice666 wrote:
> I've tried out Symfony and I found one big flaw in it; I was unable to
> separate the Symfony web directory from rest of the Symfony file
> structure. I wanted all my app files outside of my web directory and
> full control as to where I would put my web directory. Since I was
>
On 4/6/06, Mika <[EMAIL PROTECTED]> wrote:
> * Manual 0.10.9.2640
> http://www.box.net/public/felmnrhpsu
>
> * Api 0.10.9.2378
> http://www.box.net/public/q2fynh1ef8
>
> * Api 0.10.9.2642
> http://www.box.net/public/7r2v6osf8l
Err, is it only me or is www.box.net down ?
--
< If
On 4/7/06, Mika <[EMAIL PROTECTED]> wrote:
> I just tried, but GMail keeps giving me one of those "Oops can't
> perform" errors. Could you pick it up from the above links for now, and
> maybe ask phpNut to add me to the group. Webmain is very limited from
> my company and I only have access to GMa
41 matches
Mail list logo