controller code:
$this->set('languages', $this->Language->generateList(
null, null, null, "{n}.Language.language_name",
"{n}.Language.language_id")
);
view code:
Languages checkboxMultiple('Client/languages',
$languages);?>
checkboxes are displ
@all:
Thanks guys, I'll let you know how I tackled this :-)
--~--~-~--~~~---~--~~
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 g
On Jun 1, 7:07 pm, Joshua McFarren <[EMAIL PROTECTED]> wrote:
> Don't mean to hijack the thread but could you post some links to the
> gallery tutorials you found? This would be really helpful to me and
> probably others.
Sure:
http://web.archive.org/web/20060427223358/http://wiki.cakephp.org/t
Hello,
I tried a few tutorials on how to get thtml files to be recognized and
editable by dreamweaver, but those were for mx 2004 & 8, and the did
not work for cs 3.
If anyone has information regarding how to do that, I would be most
appreciative. I might just have been looking at the wrong tut
Hi
I see that my Cake session security default is set to MEDIUM - which
logs out a user after 20 minutes of inactivity. I want to display an
error message to the user saying that "You have been logged out due to
session timeout, please login again". Please let me know how I can do
this in CakePHP
We are looking for a seasoned Cakephp web developer(s) based in the
GTA to join an ongoing Cake project.
You professional expertise should include:
- Expert programming experience in:
PHP (5.0), MySql, CakePhp (experience or ability to learn
Cakephp)
Ajax, JavaScript, CSS, XHTML, HTM
It's not an escort business. It's a paid gig.
On Jun 1, 9:15 am, Joshua McFarren <[EMAIL PROTECTED]> wrote:
> Does the developer get some free "services" from your escort business?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
On 6/2/07, JDS <[EMAIL PROTECTED]> wrote:
> excellent PHP.net documentation... In any case, I am willing to help
> clean it up if someone is willing to point me in the direction of how.
sigh!
> * What is the flash() method, where is it documented, how do I use
> it, and how am I supposed to kn
Hey Gonzalo,
Couple of ideas for you...
1st - I have no idea if this is viable, but it seems to me that the
cake cache might be a good way to index and search your content. I
would start by looking at the API. You would probably want to upgrade
to 1.2 if you go this route.
2nd - Instead of wget,
Hi Bakers,
Some of you may recall an email I sent to the list a month or so ago on how
to integrate a search engine into a CakePHP app. Someone suggested I use the
Lucene stuff from the Zend framework and that seemed like a good solution.
It used a shell script (written by an author whose name I c
Well, it seems like deadline of your project doesn't allow wait for
cake's solution for reading records with fallback to default locale ;)
Ok, I can live with it. So I'll not comment your own solution at all -
I assume that you know that things may change in development version
and you're prepared
or http://www.ask.com/web?q=cakephp+email+smtp
if you don't like google
--~--~-~--~~~---~--~~
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
or...
http://bakery.cakephp.org/tags/view/smtp
On 6/1/07, Samuel DeVore <[EMAIL PROTECTED]> wrote:
>
> http://www.google.com/search?ie=UTF-8&oe=UTF-8&sourceid=navclient&gfns=1&q=phpmailer+cakephp
>
>
> On 6/1/07, Ketan Patel <[EMAIL PROTECTED]> wrote:
> >
> >
> > I am looking in the EmailCompon
http://www.google.com/search?ie=UTF-8&oe=UTF-8&sourceid=navclient&gfns=1&q=phpmailer+cakephp
On 6/1/07, Ketan Patel <[EMAIL PROTECTED]> wrote:
>
>
> I am looking in the EmailComponent but could not find anything for
> SMTP authentication? How can I send SMTP emails using this component
> in CakePH
I am looking in the EmailComponent but could not find anything for
SMTP authentication? How can I send SMTP emails using this component
in CakePHP 1.2.xx version.
Or what would you suggest to use instead if the EmailComponent cannot
send SMTP emails.
Thanks
--~--~-~--~~~
Hi,
Does CakePHP pool database connections (using mysql) or does it
establish a connection per user thread? If it is the latter, is there
a limit on the number of concurrent connections to the database?
I ask as I want to use getLastInsert() function, which nobody here
seems to have any issues w
ok please be patient with me, where can i find the htaccess file/s and
what should i do with the RewriteBase thing?
where do i insert that piece of code for 2.? my directory structure is
localhost/cake/ibm thanks
On Jun 1, 10:10 am, Szabolcs Sulik <[EMAIL PROTECTED]> wrote:
> hi
>
> if you put c
i have that in my application but still im getting those errors, im
stumped :S
Geoff Ford wrote:
> Actually that should have been $helpers = array('Javascript') not
> $components
>
> On Jun 1, 1:22 pm, rtanz <[EMAIL PROTECTED]> wrote:
> > Hi i am trying to complete the ajax todo list tutorial
>
Hi, maybe this can help, but i'm not sure if it's the right way.
Router::connect('/artikel/:action/:page/*', array('controller' =>
'article', 'action' => 'index'));
On May 31, 8:37 am, BenjaminB <[EMAIL PROTECTED]> wrote:
> Hi,
> its YARQ, so i try to keep it short.
> the paginator gives me l
I have been wondering how Cake 1.2 will handle this. I built a similar
system (though not so elegent) for one of my projects in 1.1.x
It's nice to see that I wasn't completely off target with the design.
Regards,
Langdon
jitka wrote:
>> Do I understand it right that the table i18n & i18n_con
Worked out a solution for;
> The following issues need to be resolved for my project;
> - The ability to fetch default data when the data is not available in
> the database in the requested language. For example a news article is
> not available in French so the English version would be fetched
You cannot access the model or controller functions from the view, you
must do so before the view is rendered and pass whatever information
you can to the view. In the view, you can then access the information
in a loop because the data passed will be in array form.
Therefore, in your controller
Is the port correct? Is the username/password correct? Can the linux/
windows box see each other via ping? Is the port being firewalled by
windows built in firewall? I see an incorrect login in there too.
On Jun 1, 3:36 pm, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> Hello guys,
>
> I'm t
Hello guys,
I'm trying to connect to a MS SQL Server using cake but I'm not able
to, i get this messages:
Warning: mssql_pconnect() [function.mssql-pconnect]: Write to SQL
Server failed. (severity 9) in /var/www/apache2-default/infolab/cake/
libs/model/dbo/dbo_mssql.php on line 138
Warning: mss
Hi All,
I am new to cakePHP. I am trying to create a view which displays the
data from the table 'regusers'.
The model - reguser.php
-
The controller - regusers_cont
Update the CakePHP version. When you hit an issue that is probable a bug
ALWAYS update to latest release before posting. Chances are that it has been
previously solved.
-MI
---
Remember, smart coders answer ten questions fo
Biggest gripe with CakePHP: poor documentation. Please note that I am
*not* a PHP newbie, and I do know the essentials that I need to know
to be able to use CakePHP. But I guess I am just used to the
excellent PHP.net documentation... In any case, I am willing to help
clean it up if someone is w
i use $html->input, i input data with quotation marks, in mysql
everything is fine, however once i display the data all quotation
marks are displayed as "
the $html->textarea does not show this behaviour, all quotation marks
are displayed correctly within a textarea.
what am i missing?
any thou
You probably already know this but FYI to others behaviors dont work
in cake 1.1.x only 1.2.x.
> I'm considering writing a behavior to achieve some reusable model
> functionality for a project.
--~--~-~--~~~---~--~~
You received this message because you are subsc
On Jun 1, 8:30 pm, Joshua Benner <[EMAIL PROTECTED]> wrote:
> I'm considering writing a behavior to achieve some reusable model
> functionality for a project. I'm still in the process of reading
> through a mixture of source code, group posts, and items in the
> bakery, but I figured I'd ask for
I'm considering writing a behavior to achieve some reusable model
functionality for a project. I'm still in the process of reading
through a mixture of source code, group posts, and items in the
bakery, but I figured I'd ask for a point in the right direction:
Are there any articles or such about
This is my way to upload a photo, create a thumbnail and show it using
an IFRAME as if it was an AJAX event
The view with the Upload Form and an Iframe to display the thumbnail
El 01/06/2007, a las 15:31, dardosordi escribió:
> Hope it helps.
> It's all there, just read the code.
I've just found the problem.
As said, model->data is empty until Save. I was trying to access some
data from the upload before it was available to the model. Solution:
move all logic rel
Thanks jitka,
In the aspect of using Cake to develop sites I'm a beginner. So in
that respect I don't know every method of every class in the api. I
did not have time for that.
>> You get the complete tree with all available translations.
>Sure. What you expected?
Sorry for that, as stated befo
Well I think because I was thinking the field you wanted to associate
with your id was "condition", but was is the real name of this field
into the database ?
On May 31, 4:19 pm, g5Maniac <[EMAIL PROTECTED]> wrote:
> No, you are not misunderstanding the problem, and thankyou for your
> response!
set $this->data['Product']['status_id'] in your controller
--~--~-~--~~~---~--~~
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 g
Does the developer get some free "services" from your escort business?
--~--~-~--~~~---~--~~
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
*golf clap for jitka*
To OP: http://withcake.com/
On Jun 1, 9:25 am, jitka <[EMAIL PROTECTED]> wrote:
> http://www.ahajokes.com/com030.html
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To po
http://tinyurl.com/3588y9
On 6/1/07, Joshua McFarren <[EMAIL PROTECTED]> wrote:
>
>
> Don't mean to hijack the thread but could you post some links to the
> gallery tutorials you found? This would be really helpful to me and
> probably others.
>
> > Before someone curses me - I did search the old
Don't mean to hijack the thread but could you post some links to the
gallery tutorials you found? This would be really helpful to me and
probably others.
> Before someone curses me - I did search the old wiki archives, the
> bakery and this group's discussions and have already read several
> gall
If you are looping I would recommend using create()
foreach(data[Image] as image){
$this->ImageSet->Image->create();
$this->ImageSet->Image->save($image);
}
On 6/1/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>
> It doesn't really matter whether you are working from the I
And like magic - I've improved my version to include thumbnail
generation. It uses Nate Constant's PHPThumb Generator Component
(http://bakery.cakephp.org/articles/view/phpthumb-component).
http://bin.cakephp.org/view/367489026
You can overide your thumbnail size in the arrayt, the default is
1
> When the model is as this:
> ---
> var $actsAs = array('Translate' => array(
> 'title'=> 'Translations',
> 'content' => 'TranslationsContent'));
> ---
>
> And the findAll in the controller is changed to:
>
> $this->set('news_articles', $this->
It doesn't really matter whether you are working from the Image model
or from the ImageSet model. If you are adding more than one record,
simply loop through the data and add the records.
See: "Saving Related Model Data" in http://manual.cakephp.org/chapter/models
ImageSetController{
function
> 3. Create a demo article in news_articles
> 4. Add some demo data to i18n
You can use your model as usually:
$this->News->save(array('News'=>array('title'=>'blabla', 'content' =>
'foo_bar)));
> Changing $this->NewsArticle->locale to 'en' would fetch english
> content.
>
> It would probably be
Deja vu
Make sure you define the helpers you need in the controllers that use
that layout. ie:
class FoobarsController extends AppController {
var $name = 'Foobars';
var $helpers = array('Html', 'Form' , 'Habtm');
If that doesn't solve it what version of cake are you using?
I am getting error: Class 'HtmlHelper' not found
On Jun 1, 7:06 pm, Joshua McFarren <[EMAIL PROTECTED]> wrote:
> Check out this helper:
>
> http://bakery.cakephp.org/articles/view/create-multiple-checkboxes-in...
--~--~-~--~~~---~--~~
You received this message be
Some info about:
The following issues need to be resolved for my project;
- The ability to fetch default data when the data is not available in
the database in the requested language. For example a news article is
not available in French so the English version would be fetched by the
model
http://www.ahajokes.com/com030.html
--~--~-~--~~~---~--~~
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
thanks for your reply, not as a default value, i just couldnt find out
how it works to set a value as "selected"
thanks
On May 31, 7:52 pm, metasan <[EMAIL PROTECTED]> wrote:
> hi,
>
> 1. i think this error is due to this line :
>
> selectTag('status_id', $status, null, array(),
> null, false, fa
I finally got it to work as well. Here is my modification:
http://bin.cakephp.org/view/367489026
This one takes the upload file name, and corrects is for "bad"
characters such as whitespace, & and + and replaces them with
friendlier versions.
Please feel free to play about, and make better (i'
At first I didn't get it.
$form-> input now handles everything, all you need to do is play
around with the options array passed to it.
Hooray for supersmart $form-> input ;)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Sorry to serve SPAM for dessert, but I'm looking for a good coder who
likes interesting challenges a la cuisine.
Consider this a pudding cake, where you bake a cake, then break it
into pieces, and re-bake it with a pudding. It's like bread pudding,
only better. My wife made a chocolate spice brea
I guess yes... I don't get what's wrong, sorry.
On 6/1/07, Arndtinho <[EMAIL PROTECTED]> wrote:
>
> I ask the server admin at the hosting company - mod_rewrite is
> enabled.
> Normaly it should be working without any changes or not?
>
> Regards,
> Arndtinho
>
>
> On 31 Mai, 10:41, "Nicolas Rimbea
Hello,
This is my second CakePHP-driven project, so I'm a newbie. I'm
building an image gallery, where images can be tagged.
Before someone curses me - I did search the old wiki archives, the
bakery and this group's discussions and have already read several
gallery tutorials. However, I have a fe
Thank you all, I have successfully implemented translations.
The implementation to help other facing the same situation:
1. Create the i18n tables from the sql file /config/sql/i18n.sql
2. Create the news_articles table
id (int8) prim key, auto incr.
other fields like created_
Check out this helper:
http://bakery.cakephp.org/articles/view/create-multiple-checkboxes-instead-of-a-multiple-select-in-your-views
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this
I have a table named languages where language names are stored. I
want to retrive those language names and give options to users in in
a
checkbox[] type.
I tried,
code in views:
checkbox('Language/language',
$title = null,
$htmlAttributes = array($lang['Lang
I've been working with a local cake install, and everything has been
fine. All the folders are in a subfolder of DocumentRoot.
I had a few problems when uploading it to my isp. The manual doesn't
seem to cover my circumstances, and most threads about it I could find
refer to the defunct wiki.
Think first why it should.
On May 31, 7:08 pm, Mirko <[EMAIL PROTECTED]> wrote:
> FormHelper::select() doesn't issue a label tag, just the select tag.
>
> Yes, and not even surrounding , but why???
--~--~-~--~~~---~--~~
You received this message because you are s
> By the way, I'm not sure about the placement of upload files as a
> behavior. I see it on the controller layer, but not so sure :-(.
Yeah, I've thought it too, but then put it this way: uploading a file
is storing data, then is a model thing. And the behaviour was there
(Thanks a lot Chris Part
Thanks, but it seems that behavior (or beforeSave callback) won't help
cause cake simply strips out empty string values in DboSource::create
(after callback).
If for example there were some constant say
define(EMPTY_STRING, 'SOMETHINGREPRESENTINGEMPTYSTRING') and in
DboSource::create there was s
You are right... oops.
Actually I am now using:
$this->Status->recursive=0;
$statusName = $this->Status->read( 'status', $sta );
Which is working perfectly
Erm... I think I read somewhere (possibly the manual) that one can
use
findAllBy as a method to quickly get to the
I'd create a behavior. Of course models shouldn't access components,
so the logic from the component should be transferred to the behavior
itself. Something like this: http://pastebin.sk/en/1752/ (not tested,
just quickly written)
Cheers
grigri
On 30 May, 22:53, Langdon Stevenson <[EMAIL PROTECT
You're calling directly to the class, instead do this from the controller:
$this->Status->findAll()
... and I'm not seeing findAllById() in the model API -- where did that
come from?
[EMAIL PROTECTED] wrote:
> Hi All,
>
> I know it is a FAQ, but I can't seem to get it to work.
>
> I have a Pet
Hi All,
I know it is a FAQ, but I can't seem to get it to work.
I have a Pet model and a Status model, both with associations that are
working etc.
In my PetsController I have the following line
$uses = array( 'Pet', 'Status' );
Then in one of the actions in that controller I want to get a row
On 1 jun, 13:19, "Jon Bennett" <[EMAIL PROTECTED]> wrote:
> > Don't know what SEO purist would have to say though (although for example
> > it doesn't seem
> > to affect one way or the other how you write your urls to Google).
>
> I've read/heard differently. I believe that hyphens (-) are bett
I have a table named languages where language names are stored. I
want to retrive those language names and give options to users in in a
checkbox[] type.
I tried,
code in views:
checkbox('Language/language', $title = null,
$htmlAttributes = array($lang['Langua
You should read this bakery article:
http://bakery.cakephp.org/articles/view/null-behavior
It's not exactly what you want, but should give you some pointers on
the best way to handle the situation.
On 1 Jun, 08:59, Eugene Bolshakov <[EMAIL PROTECTED]> wrote:
> When I want to save a record with
Hi rrjanbiah, I saw in irc logs that you're looking for me, but
unfortunately we're in different timezones (GMT +1 here) and I have
regular fulltime job, so it is probably hard to meet there.
Example I gave to you *should* work. At least it works for me. Try it
with fresh (means empty) cake insta
oops. i think that url should actually be "http://localhost:7070/cake/
index.php/notes", according to your post.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email t
note_controller.php should be notes_controller.php. Also, if you are
using cake's pretty urls (you uncommented line 41 in app/config/
core.php), you access your controller with a url like "http://
localhost:7070/index.php/notes"
On Jun 1, 3:28 am, sonic <[EMAIL PROTECTED]> wrote:
> Hi all,
>
>
> Do I understand it right that the table i18n & i18n_content stores
> translations for each table that uses it?
Yes.
> If that's right the structure for news would be:
>
> Table: news
> id: int(8)
> title: varchar(255)
> content: text
> ...other fields
No. Structure for table 'news' will be
id
> Don't know what SEO purist would have to say though (although for example it
> doesn't seem
> to affect one way or the other how you write your urls to Google).
I've read/heard differently. I believe that hyphens (-) are better
than underscores because search engines see underscored_words as
o
On 31 mayo, 15:54, Preloader <[EMAIL PROTECTED]> wrote:
> Helly bakers,
>
> I hope this is not a strange/stupid question, but (i think) i didn't
> find the answer in the cake manual ("conventions").
>
> I have a controller for link categories.
>
> Classname: LinkCategoriesController
> Filename:
Hi all,
I'm a greenhorn at CakePHP. I use XAMPP for Apache,MySQL. I
download and configure CakePHP as Manual ask me to do. CakePHP is
properly work when I call " http://localhost:7070/cake/ ". It show two
messages " 1. Your database configuration file is present. and 2. Cake
is able to
El 31/05/2007, a las 14:48, dardosordi escribió:
> save http://bin.cakephp.org/saved/17539 as app/models/behaviors/
> upload.php
Hi, I've tried a similar approach to write an upload behavior (my
first behavior, yes, another newBaker) based on this example but it
fails when adding new models
On Jun 1, 3:26 pm, oleonav <[EMAIL PROTECTED]> wrote:
> Do I understand it right that the table i18n & i18n_content stores
> translations for each table that uses it? So a news table and a pages
> table store their translations in the same i18n combo?
FWIW, poLK has done some example in
Hi jcsiegr...,
Thank's for your quick reply.
Do I understand it right that the table i18n & i18n_content stores
translations for each table that uses it? So a news table and a pages
table store their translations in the same i18n combo?
If that's right the structure for news would be:
Table: n
hi
if you put cake into a subdir do one of the follows:
1. use RewriteBase in .htaccess files
2. create VirtualHost: e.g. YOUR_WEBROOT_DIR/cake/ibm can be
ibmcake.local
DocumentRoot YOUR_WEBROOT_DIR/cake/ibm
ServerName ibmcake.local
bests
szabolcs
On May 31, 5:08 pm, rtanz <[EMAIL PR
It seems that you have
`client_id` field (or something else for primary key) in your clients
table rather than `id` that is expected according to cake conventions.
You can update you Client model with
var $primaryKey = 'client_id';
like this:
class Client extends Appmodel {
var $primaryKey = '
I am getting error,
Query: SELECT COUNT(id) AS count FROM `clients` WHERE `id` = 81
Warning: SQL Error: 1054: Unknown column 'id' in 'field list'
in ...cake\libs\model\datasources\dbo_source.php on line 463
the primary key field name in database table is client_id.
On Jun 1, 12:43 pm, Repsah <[
When I want to save a record with some fields set to empty strings
cake strips them out (from DboSource::create):
>> if ($set === "''") {
>> unset ($fieldInsert[$i]);
>> } else {
>> $valueInsert[] = $set;
>>}
And since I use MySQL 5 and the fields that I'm trying to save empty
strings
MattC wrote:
> I wrote the RSS Plugin. I didn't give much thought to caching at the
> time. Another route you could take: The RSS Class that is used has
> caching built in. You could put something in the controller to use
> check that cache before doing all the SQL to regenerate the feed.
Ok,
which one is the edit function?
If it's the second one try with
$this->Client->id = $this->Session->read('client_id');
before saving.
On 6/1/07, cake_learner <[EMAIL PROTECTED]> wrote:
>
>
> When i try to update record, its inserting a new record.
>
> I have a registration page, containing 6 pa
When i try to update record, its inserting a new record.
I have a registration page, containing 6 pages. I am inserting the
data in same table. After the first page is saved, the insertid is
retrieved and stored in a session.
Code:
controller:
function index()
{
if(
Solved!
How embarrassing--boy was I overlooking the obvious. Set a location
from each controller respectively and then access it in the element
like so:
// @ app/views/elements/masthead.thtml
Graphic Manifesto
requestAction('media/index');
$c
87 matches
Mail list logo