e($html->link(__("LABEL_TERMS_CONDITIONS", true), "/terms"));
--~--~-~--~~~---~--~~
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
On 2/24/07, Cynthia <[EMAIL PROTECTED]> wrote:
>
> Argh... strike that guys... NEVER change code at place A and do a view
> source of place B.
>
> Never.
+1 :)
Been there done that for nearly an hour yesterday - only that the code
base was Wordpress
Cheers
Tarique
--
I'm trying move a cakephp site to a new host. Bluehost.com and I have
a problem where I'm not sure the origin.
It appears not to be loading the objects for the models that i'm
trying to include in $uses. What would be keeping it from doing that?
There are no errors except for the error that I g
Argh... strike that guys... NEVER change code at place A and do a view
source of place B.
Never.
On Feb 23, 11:24 pm, "Cynthia" <[EMAIL PROTECTED]> wrote:
> (Using 1.2)
>
> >From digging around in the API and looking over the function link and
>
> the function _parseAttributes there seems to be
I like using the session to carry over some parameters paginate would
otherwise forget about :)
On Feb 23, 7:27 pm, "NOSLOW" <[EMAIL PROTECTED]> wrote:
> I found that if you have other params set (field sort, direction,
> order), then you need to also unset those as well:
>
> unse
On 2/23/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Is there anyway to turn these noticies off while keeping
> Configure::write('debug', '2'); ? They are really freaking annoying.
>
I would not recommend that you ignore notices - the best practice
while programming is that you should no
(Using 1.2)
>From digging around in the API and looking over the function link and
the function _parseAttributes there seems to be no way to add a class
or an inline style to a link?
Any other way to accomplish this the Cake way?
--~--~-~--~~~---~--~~
You receiv
Have you tried another nightly build?
Try getting this to work in a completely clean view. There has go to
be something else intefering.
On Feb 22, 12:54 pm, "isk" <[EMAIL PROTECTED]> wrote:
> CAN ANYBODY HELP?
--~--~-~--~~~---~--~~
You received this message be
I just tried it and got the same error, but it does look like the files got
there okay. Is anything missing that you can tell?
Eric
On 2/23/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>
> Repo is currently not available due to the following error:
>
> Error: Can't open file 'C:\My_Path\!
Sounds like findAllThreaded() is the answer you are looking for:
http://bakery.cakephp.org/articles/view/63
Also check the component I wrote here, as it solves something typical in
threaded models (finding the breadcrumb):
http://groups.google.ch/group/cake-php/browse_thread/thread/6c7cdd0cc516
The following helped me when I was setting up something like this:
$this->Category->recursive = 0;
$this->set('category_tree', $this->Category->findAllThreaded(null,
array('id','parent_id','name'),'parent_id, name'));
It'll give you a multidimensional array based on parent_id. You could a
Ok, I understand.
Something about the __() function:
I wanted to translate the title of a link : e($html-
>link(__("LABEL_TERMS_CONDITIONS"), "/terms"));
gives : Règles et Conditions, title outside the
tags.
The right solution : e($html->link(__("LABEL_TERMS_CONDITIONS", true),
"/terms"));
That
Just left Texas A&M for Las Vegas. Any Vegas bakers?
Eric
On 2/23/07, Dat Chu <[EMAIL PROTECTED]> wrote:
>
>
> Me, waving from University of Houston
>
> On Feb 23, 3:01 pm, "naryga" <[EMAIL PROTECTED]> wrote:
> > Any Bakers in the Houston, TX Area?
>
>
> >
>
--~--~-~--~~~
Thanks, Nate! Do I actually get a gold star? ;-)
You know, I really do try to help out around here - at least by answering a
couple of questions a day. But sometimes I'm amazed at the audacity of some
people on this list. They seem to think this is a corporate sponsered
framework for which the peo
Ok, this is doing my head in. Basically I'm trying to setup a simple
CMS. So the part I'm wrestling with here is the pages or what I've
called 'Nodes'
Now my nodes basically have fairly simple fields; id, parent_id,
title, summary, body, node_type_id, link, members and publish. It's
all pretty mu
The error happens because on cake/libs/I10n.php you see:
var $__l10nMap = array(
// ...
'fra' => 'fr',
'fre' => 'fr',
// ...
);
That's a mapping from ISO639-3 to language catalog. Further down:
var $__l10nCatalog = array(
// ...
'fr' => array('lan
Hi,
The ISO language name for french is fra , fre.
I made a directory app/locale/fra/LC_MESSAGES/ and put there a
default.po and default.mo and followed the instructions about using
i18n :
$language = 'fra';
$this->Session->write('Config.language', $language);
with a very simple page ( no cont
The 2nd argument is the parent.
On Feb 23, 3:39 pm, "josoroma" <[EMAIL PROTECTED]> wrote:
> I was wondering how to create parent groups or child groups using
> acl.php script, for example, i just used "php acl.php initdb" and
> every table was created well. Then i used:
> php acl.php create ar
I found that if you have other params set (field sort, direction,
order), then you need to also unset those as well:
unset($this->params['pass']['page']);
unset($this->params['pass']['sort']);
unset($this->params['pass']['direction']);
Your example was extremely timely and helpful for me since I was
working on a search page today. I was able to clean-up the link
creation so that it will retain any other params that might be set,
like sort field and direction:
';
for ( $page = 1; $page <= $paginator->params['paging'][$p
All right, I have figured out a portion of this, but I am still
unclear as to entirely what's happening.
First of all, somewhere in Cake, the function writing out the
stylesheet link is inserting a "/" before the CSS address.
This means that even if you set the path for a CSS document in the
con
I was wondering how to create parent groups or child groups using
acl.php script, for example, i just used "php acl.php initdb" and
every table was created well. Then i used:
php acl.php create aro 0 null Users
php acl.php create aro 0 null Members
and those groups were created without proble
On Feb 23, 11:14 pm, "Oneill" <[EMAIL PROTECTED]> wrote:
> Hi All,
>
> Here a dutch friend which needs some wisdom.;-)
>
> I am trying to build my own mini cms... Who doesn't... ;-)
>
> I would love to get my urls like this : /whatever/here/nice/blabla
> The most scripts I saw on the google grou
thanks guys. the FormsWizard looks interesting. What does the author
mean by 'ways'? Bit of an odd term to choose. Routes through the form?
Chris - can you elaborate on the problem with the back button? I
assume you mean the browser back button? I guess there are three
options - sessions, databa
Me, waving from University of Houston
On Feb 23, 3:01 pm, "naryga" <[EMAIL PROTECTED]> wrote:
> Any Bakers in the Houston, TX Area?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this
I have double checked all my naming conventions numerous times and for
some reason my controller (Menus) is looking for a Model looking Menus
instead of Menu. Any help will be greatly appreciated.
Here are the filenames and file contents.
Controller:
filename: menus_controller.php
set('menu_dat
Ya! Awesome Thank You bbuchs! I have a few question(s) though if you
can answer them or if anyone else can.
How can I default the displaying of the home page for the controller
to the last page. So if there is 10 pages ... instead of going to page
1 ... it goes to page 10 first. Is this possible?
I didn't do much but follow the installation instructions that came
with cake, only I installed it in a subdomain. Given that Cake should
think its in a root web document directory, I didn't think it would
matter too much. And it didn't. My first controllers and models work
fine. But the CSS f
Hi All,
Here a dutch friend which needs some wisdom.;-)
I am trying to build my own mini cms... Who doesn't... ;-)
I would love to get my urls like this : /whatever/here/nice/blabla
The most scripts I saw on the google group are too simple for this. I
would like this to be eternal... So as man
Is there a quick way to get an assoc array from a single column in a
table?
For example, I want an array of years like
array(2000=>2000,2001=>2001)
by running a query like
select distinct year from mytable order by year
I use a generic query and make it myself, thought there might be built
in
Your are right, that works, I didn't think in the reverse direction.
thanks,
On Feb 23, 4:41 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> Sounds like what you need is
>
> Vehicle belongs to make
> Make has many vehicles
>
> See how you go with that.
--~--~-~--~~
Sounds like what you need is
Vehicle belongs to make
Make has many vehicles
See how you go with that.
--~--~-~--~~~---~--~~
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
I'm trying to understand the best way to set up model relationships
for common pick lists, such as:
model Vehicle hasOne Make
where the makes table is basically:
id, make
And the vehicles table uses a column make_id to join to the associated
make.
The hasOne doesn't seem to apply, and the HAB
Load the model before manually instantiating:
loadModel('FileHandler');
$FileHandler =& new FileHandler();
BTW, there's no such thing as CakePHP 1.1.14, yet :)
-MI
---
Remember, smart coders answer ten questions for ever
On Feb 23, 2007, at 12:01 PM, [EMAIL PROTECTED] wrote:
>
> Im working on a project where I have to make a frontend for store
> sales (reports), where each store has a very large number (100k+) of
> receipts and even larger number of sold items. The database is a mysql
> datamart. If I limit the
Hi All,
I've been using the FileHandler class for uploading, and it seems to be
working fine in versions of cake up to about 1.1.7. But when trying to
use the same code under 1.1.12 (and probably 1.1.14) it's telling me
Fatal error: Cannot instantiate non-existent class: filehandler in
/home
Any Bakers in the Houston, TX Area?
--~--~-~--~~~---~--~~
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 [EMA
loop through the pageCount paramater and output the links
params['paging']
[$paginator->__defaultModel]['pageCount']; $page++): ?>
current() ): ?>
link($page, '/admin/'.$paginator-
>params['controller'].'/index/page:'.$page) ?>
On Feb 23, 1:23 pm, "Jon M." <[EMAIL PROTECT
I just went through this myself... have you looked at the sample in
the manual (http://manual.cakephp.org/chapter/acl) ?
I found that it describes what you need to do pretty well and from the
look of it you might be missing a step.
cheers
On Feb 23, 3:17 pm, "scragz" <[EMAIL PROTECTED]> wrote
Hey gang,
been doing php for years but brand new to CakePHP. I am stuck and need
a nudge.
I have a table with Groups. The a table with Admins. I also have a
Admins_Groups table and with the proper hasAndBelongsToMany in place
the scaffolding sees the groups an admin is admin for and what admins
I'm having some issues getting ACL working in the 1.2 branch. I think
I'm finally pretty close and was wondering how to properly save a tree
model. I have, so far:
$acl->Aro->create(array('model' => 'Role', 'foreign_key' => 1,
'parent_id' => 0, 'alias' => 'foo'));
$acl->Aro->save();
Outputs:
1
Nobody can help me out :( ?
I tried doing a search but couldn't find anything on it. Please :)
On Feb 22, 3:11 pm, "Jon M." <[EMAIL PROTECTED]> wrote:
> I am curious if anyone can show me how to add selectable page numbers
> along side the "prev" and "next" links. Having 50 pages and having to
>
Im working on a project where I have to make a frontend for store
sales (reports), where each store has a very large number (100k+) of
receipts and even larger number of sold items. The database is a mysql
datamart. If I limit the number of receipts cake will show the
information fine, but for 10,
http://ahsanity.wordpress.com/2007/02/23/get-started-with-ajax-in-cakephp/
[EMAIL PROTECTED]
--~--~-~--~~~---~--~~
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@googlegroup
Check the group's history, there was a post earlier today with links to
just that.. :P
Junal Rahman escreveu:
> I want to use Ajax in Cakephp. Can anybody give me a link of example where i
> can see how to use Ajax in cake.
>
> >
>
--~--~-~--~~~---~--~~
You re
I'm using the "inline" option to include CSS and JS on a per-view
basis (as described by Nate: http://cake.insertdesignhere.com/posts/view/17)
example: in an "admin_edit.ctp" file, I link to a CSS file that styles
my form inputs:
$html->css('admin',null,null,false);
When a submitted form fails
Search snippets at cakeforge .org for FormWizard component - it stores
info in session and handles validation for every step as well as data
from multiple models used in different form steps.
--~--~-~--~~~---~--~~
You received this message because you are subscrib
hmmm.
Big word AJAX on the Bakery takes me to
http://bakery.cakephp.org/tags/view/ajax
searching this group for the word ajax gives 796 results, the first
page has several useful answers.
HTH,
David Lloyd
--
lloydhome consulting, inc.
http://lloydhome.com
On Feb 23, 12:49 pm, "Junal R
I want to use Ajax in Cakephp. Can anybody give me a link of example where i
can see how to use Ajax in cake.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to cake
Is there anyway to turn these noticies off while keeping
Configure::write('debug', '2'); ? They are really freaking annoying.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group,
On 2/23/07, lukemack <[EMAIL PROTECTED]> wrote:
>
> hi,
>
> does anyone know of a tutorial regarding multi-page forms in cakephp?
> What I'm going to be doing is a form which allows the user to submit a
> review, then after the first page submit, they get a a registration
> form (only registered u
With the "will you please" part you were too nice ;)
It should go something like:
"hi need my app to write to a file then to read database and parse XML so it
can go into webservice using REST but also display results in AJAX showing
when a request is being made so I need code to do this and als
Hi, I am having a very strange issue on my webspace provider, this
does not happen on my local installation.
I tried to get Cake to work on my webspace (Cake 1.2, released
version), installed everything, database works. I implemented a simple
scaffolding app with two tables, "articles" and "comme
hi,
does anyone know of a tutorial regarding multi-page forms in cakephp?
What I'm going to be doing is a form which allows the user to submit a
review, then after the first page submit, they get a a registration
form (only registered users can submit reviews). registered users can
login there or
well thx for ur reply.i kno its may not be related to cakephp but
im using the cakephp framework and showing the result using controller
and model...thx.
On Feb 23, 8:05 am, "Eric C Blount" <[EMAIL PROTECTED]> wrote:
> Please explain how this problem relates to CakePHP, not simply to PHP.
>
>
Hi,
I'm looking for code that will pay my bills and call my mom every
week. Will you please give me an example this this code.
Ha!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this
Repo is currently not available due to the following error:
Error: Can't open file 'C:\My_Path\!CakePHP\CakeForge\svn_cakeamfphp
\trunk\amfBB\ria\deploy\.svn\tmp\text-base\don't use this directory.
put swfs in app:webroot:swf.svn-base': The parameter is incorrect.
Any help obtaining the latest a
Hi all,
I've been putting together an online event registration system in
CakePHP that will be a hosted, commercial web app. I'd love to hear
from anyone who is interested in testing the app in its current form,
even use it to run an event perhaps... Happy to give something back in
return.
Just
hi I am having some problems with the pagination display. I don't know
what went wrong.Well
the records are showing up correctly according to the criteria,but
their no is less than the actual one.For eg if the correct no of
records is 25 it is showing only up to 20.However when I change the
show v
"GreyCells" also wrote a Helper for this purpose - I'm using it on a
1.2 project now, and it's great. I think the HTML it outputs could be
a little cleaner, but it does what it should.
https://trac.cakephp.org/ticket/1901
I'm hoping something like this makes it into the source - from a
usability
hum... Honnest I haven't had a look at the $html->checkboxesMultiple
yet but well.. here's how my apps do it;
I've extended the html helper as I've got quite a few 'custom'
functions. One of them I called checkboxGroup (and other one is
radioGroup, which I though looks better than a select box in
As an avid writer of rants about the postings of n00bs and rude
people, I have to say that pretty much sums it up. Eric, you get a
gold star.
On Feb 23, 5:52 am, "Eric C Blount" <[EMAIL PROTECTED]> wrote:
> No one is going to *give* you sample code. We're not getting paid to write
> your program
Thanks for that - its just me wishing for the magic bullet!
If scaffolding did all that we wanted then whay would we take it down!
Thanks again
On Feb 23, 12:42 pm, "hydra12" <[EMAIL PROTECTED]> wrote:
> That is right. If you don't pick the patient id from a drop down, how
> will the diagnosi
That is right. If you don't pick the patient id from a drop down, how
will the diagnosis model know which patient to associate with? As far
as I know, that's standard practice for Cake's scaffolding. You can
set the $displayField property for your patient model, though, so you
can choose patien
Hello folks.
I have just compiled an article with useful links for getting started with
Ajax in CakePhp. Though its very basic, I feel people who are new to Cake
will benefit from it (hopefully). Do let me know your views and suggestions.
I am sure there is room for improvement.
Here's the link:
ht
Steniskis escreveu:
> I use this one
> http://www.frequency-decoder.com/2006/10/02/unobtrusive-date-picker-widgit-update
> It is all right and simple to install.
> Jean
Hi, I'm new to cake php anda I´m trying to integrate this date picker
also. I can't get it to work , instead of a popupmenu wit
I am probably missing something fundamental and it may just be a
function of scaffolding and something I need to add in later but...
if I have a related record ie...
patient Model
var $hasMany = 'Diagnosis';
Diagnosis Model
var $belongsTo ='Patient';
when I scaffold that and add a new diagno
Does anybody have an idea here?
Every hint is appreciated. :-)
Regards
Ralph
On 22 Feb., 10:23, "szeta" <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I'm using CakePHP now for a few months on a project and I really love
> the framework.
> It helped me to safe a lot of time!
>
> But one thing, I always
No one is going to *give* you sample code. We're not getting paid to write
your program.
We've pointed you in the right direction. Go learn it!
Good luck,
Eric
On 2/23/07, anandrv <[EMAIL PROTECTED]> wrote:
>
>
>
> i am using cake1.1.12.4205 give me example codin this is my controller
> coding
First off, I think you need to name things correctly. In users, you should
have country_id, and your table should be named countries.
Next, just add the following to the Country model:
var $hasMany = array(
'User' =>
array('className' => 'User',
),
);
And in the User model:
v
IRC has no code formatting nor does this google group. Please paste
code in http://bin.cakephp.org/ and give the link.
On Feb 23, 9:43 am, MJ Ray <[EMAIL PROTECTED]> wrote:
> "John David Anderson (_psychic_)" <[EMAIL PROTECTED]> wrote:
>
> > - Critique on a community contributed, open source proj
i am using cake1.1.12.4205 give me example codin this is my controller
coding
var $helpers = array('Html', 'Form' );
function add()
{
$this->set('catArray', $this->Product->Category-
>generateList(null,null,null,'{n}.Category.id','{n}.Category.catname'));
if (!empty($this->data))
{
i
anandrv wrote:
> I have Developed by Registration Page.I need After Registration
> Completed the Thank you mail was send to the user and the Admin also
> received one mail.Please Give me examples.
>
Which version of Cake do you use? In 1.2 there is a very nice email
component, what is easy to u
"John David Anderson (_psychic_)" <[EMAIL PROTECTED]> wrote:
> - Critique on a community contributed, open source project is silly
> unless you're willing to pony up some help. [...]
I'd modify that one to:
- Constructive critique on a community contributed, open source
project is OK, but don't
for the record... in bootstrap.php, you can use
$modelPaths
$viewPaths
$controllerPaths
$helperPaths
$componentPaths
$behaviorPaths
To add one or more paths to be looked up.
I've submitted a patch (dams simple) to add additional paths for
vendors (so that a vendor be reused across multiple proj
So, have you searched the group for examples? Have you searched the bakery?
http://bakery.cakephp.org/ search for mail, see the top article.
http://www.php.net/mail
HTH,
Eric
On 2/23/07, anandrv <[EMAIL PROTECTED]> wrote:
>
>
> I have Developed by Registration Page.I need After Registration
>
I have Developed by Registration Page.I need After Registration
Completed the Thank you mail was send to the user and the Admin also
received one mail.Please Give me examples.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
77 matches
Mail list logo