and when i choose the windows-1256 i see the real world which is مقال
On Fri, Jan 30, 2009 at 10:23 AM, mohammad al-ani
wrote:
> params show me the value of the key 'keyword' is yes like this symbols
>
>
> On Fri, Jan 30, 2009 at 2:48 AM, brian wrote:
>
>>
>> What does $this->params show yo
Very nice, thanks!
Webweave wrote:
> You could just add a count to the fields that you are fetching like:
>
> $this->Foo->find('all', array('fields' => array('Foo.*', '(select count
> (1) from bars Bar where Bar.foo_id = Foo.id) as bar_count')));
>
> I use this approach both with fields and it
params show me the value of the key 'keyword' is yes like this symbols
On Fri, Jan 30, 2009 at 2:48 AM, brian wrote:
>
> What does $this->params show you?
>
> On Thu, Jan 29, 2009 at 5:18 PM, medo wrote:
> >
> > hi group,
> >
> > i have problem with my search feature in my site the problem
Are you sure that render path is correct? Try doing:
$this->viewPath = 'elements'; // this is relative to views dir
$this->render('view_artists');
What do you mean by, "no luck"? What effect are you seeing?
Are you loading the form inside the 'view_artists' element area? Are
you replacing any
So, How did you solve it?
On Jan 29, 8:11 pm, Delirium tremens wrote:
> This part of the problem has been solved.
>
> On 29 jan, 20:41, Delirium tremens wrote:
>
> > The following code does not work.
>
> > function hashPasswords($data) {
> > return $data;
> > }
> > function
I have a ajax area on the page, simple click a link and it loads new
content into a div.
view:
element('view_artists'); ?>
I have a link that they can "edit artists" which loads the form.
Edit Artists
The edit_artists is a form to edit their selections. Now if they want
to "Cancel" and not ma
Any defaults set in the DB?
Cleared the model cache?
On Jan 29, 9:17 pm, Chad Casselman wrote:
> I just updated one of my apps with the latest of cakephp (just replaced the
> cake folder) and now when items are insert the created and modified dates
> are set to all 0s.
>
> Any thoughts on this?
I just updated one of my apps with the latest of cakephp (just replaced the
cake folder) and now when items are insert the created and modified dates
are set to all 0s.
Any thoughts on this?
Chad
--~--~-~--~~~---~--~~
You received this message because you are subs
> API 1.1 is missing! Please put it back ASAP. I'm still using that
> version.
http://cakeforge.org/frs/?group_id=53&release_id=76
> >
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to
This part of the problem has been solved.
On 29 jan, 15:06, Delirium tremens wrote:
> What else should I try?
>
> On 29 jan, 15:01, Delirium tremens wrote:
>
> > The code from the site:
>
> > function hashPasswords($data, $enforce=false) {
> > if($enforce && isset($this->data[$t
This part of the problem has been solved.
On 29 jan, 20:41, Delirium tremens wrote:
> The following code does not work.
>
> function hashPasswords($data) {
> return $data;
> }
> function beforeSave() {
> $this->data['Account']['password'] = Security::hash($this->d
API 1.1 is missing! Please put it back ASAP. I'm still using that
version.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscr
Basic question, hopefully with a simple answer. I've got a view that I
*do* want to re-render after an ajax delete. The delete works properly
and the view attempts to re-render, but instead displays the dreaded
"requested address was not found" message (basically acting as if it's
trying to render
OK, just an observation, but first your ID is 0, which doesn't make
sense for an ID value.
But assuming that's OK for a moment, what is the result if you query
the ingredients_recipes table directly for recipe_id of 0.
On Jan 29, 10:11 am, matth wrote:
> Sure thing.
>
> My recipes controller v
This is just a wild guess, but perhaps it is not applied when you're
using requestAction()? It is (if I understand correctly) a separate
request as far as cake is concerned.
Try adding the paginator manually in your controller, and if that
doesn't work maybe someone else will offer more help.
On
I wrote a small pagination example a while back, the link is
http://wiltonsoftware.com/posts/view/custom-group-by-pagination-and-a-calculated-field.
I used the function for 3 paginated views, since I only had one of the
paginated views using the group by clause I just checked for that
condition.
Are you certain that you have at least one row in ingredients_recipes
with a recipe_id equal to ... hey, wait a minute--your recipe ID is 0.
That's not right at all!
You'll need to clear that up, first. How did you put that recipe data
into the DB? If it was through a Cake form, something's likel
What does $this->params show you?
On Thu, Jan 29, 2009 at 5:18 PM, medo wrote:
>
> hi group,
>
> i have problem with my search feature in my site the problem is when i
> use the search page to search for an Arabic word with the form get
> method. and i faced that problem in the prototype below
>
I edited some code to make it more readable in the group, looks like
that is a misstip. The requestAction works fine, in fact if I comment
all $paginator mentions the foreach shows the expected results.
The doc reads that setting var $paginate and using the method paginate
() automatically adds t
Hello!
1.
I have a static (that is, no php in it) file transform.xsl which I put
in a folder "xslt" under webroot that has a link
to a style.css file. And in my view I am linking transfor.xsl file:
');
?>
The problem is, the number of arguments passed to the controller
(separated by slashes)
The following code does not work.
function hashPasswords($data) {
return $data;
}
function beforeSave() {
$this->data['Account']['password'] = Security::hash($this->data
['Account']['password'], null, true);
return true;
}
Can you figure out why?
I have found many blogs talking about how you can have your controller
send to your view the results of some:
$data = $this->MyModel->find('all', array('some params'));
$this->set('data', $data);
And then in your view:
echo $javascript->object($data);
Now, how the heck in the view using Javasc
hi group,
i have problem with my search feature in my site the problem is when i
use the search page to search for an Arabic word with the form get
method. and i faced that problem in the prototype below
> search_controller.php <<
layout='page';
if (isset($_GET['keyword']))
Well..thanks a lot then :)
On 29 Січ, 23:32, Miles J wrote:
> No that's pretty much the only way to refresh the Auth user session.
> Any variants of updating the session manually works.
>
> On Jan 29, 11:18 am, Mee wrote:
>
> > Hello,
>
> > As far as I see Auth->User is cached in session, but
function hashPasswords($data, $enforce=false) {
if($enforce && isset($data['Account']['password'])) {
if(!empty($data['Account']['password'])) {
$data['Account']['password'] = Security::hash($data
['Account']['password'], null, true);
}
No that's pretty much the only way to refresh the Auth user session.
Any variants of updating the session manually works.
On Jan 29, 11:18 am, Mee wrote:
> Hello,
>
> As far as I see Auth->User is cached in session, but when I change
> some fields in user's record I need to update cache. I do i
Kudos!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.c
Hi Sergi,
I agree with Smelly_Eddie. My LAMP-installation on ubuntu works stable
and fast over month.
There are some nice HowTo's - search for "ubuntu apache" (GIYF:)
Some people prefer a VirtualHost config.
But you can also use
sudo a2enmod rewrite
and "AllowOverride All" in http.conf - and hav
Well, maybe you didn't include the PaginatorHelper in your app.
Other thing which seems odd to me is that your controller is
"ItemsComments", but in your element you're calling $this-
>requestAction('items/get_comments/'.$id). Is 'items/get_comments/'
properly mapped to ItemsComments::index()?
O
Hello,
As far as I see Auth->User is cached in session, but when I change
some fields in user's record I need to update cache. I do it in a
wierd way:
$user =
$this->User->findById($this->Auth->user('id'));
$this->Session->write($
So...your two options are to generate the old style using doxygen or
contribute to the api_generator project.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to cake-
MichTex-
I have used this before with great success: http://code.google.com/p/js-hotkeys/
Works with jQuery.
Brad
On Jan 29, 12:18 pm, MichTex wrote:
> Has anyone implemented keyboard shortcuts (hotkeys) for CakePHP
> applications? I'm looking for real, single-key shortcuts, such as
> Gmail a
the best way to solve it definitely to add more !
something likeSCAFFOLD IS NOT FOR PRODUCTION USE
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to cake-php
I'm trying to code an element that shows the comments about a certain
item, but when I'm using the paginator helper i get a "Fatal error:
Call to a member function numbers() on a non-object in[...]" message.
Searching the group i found that some users had the same problem, but
never received a va
I agree with rogwei -
The overall layout looks great, (especially love the use of Mac
typefaces) and its very legible.
But I do really miss those member list links, its a lot harder to scan
and jump-to like I used to (and I rely on the API quite a bit.)
On Jan 28, 10:26 am, rogwei wrote:
> um
On Jan 25, 10:49 am, leo wrote:
> Sorry to be slow getting back - we've had a thirty hour power outage
> following a storm that ripped off roofs and uprooted trees. A little
> unusual here in Spain.
> @everybody and nobody, I dislike Eclipse and Netbeans because
> 1. (without redoing the sums)
Has anyone implemented keyboard shortcuts (hotkeys) for CakePHP
applications? I'm looking for real, single-key shortcuts, such as
Gmail and Google Reader provide, and not the multi-key shortcuts
(i.e., using the Alt or control keys) which the HTML accesskey
attribute gives you.
Thanks.
--~--~--
Sure thing.
My recipes controller view function:
function view($id = null)
{
$this->set('recipe', $this->Recipe->findById($id));
}
My recipes/view.ctp debug output:
Array
(
[Recipe] => Array
(
[id] => 0
[created] => 2009-01-21 22:49:23
[n
I use NetBeans with Cake and haven't seen any serious shortcomings on
code completion, can you elaborate ? My only complaint with the PHP
support in NB has been that it feels a bit like a bolt-on, but as the
past has shown I'm sure the NB team will continue to rapidly improve
that.
There's also a
the previous version used Doxygen, http://www.stack.nl/~dimitri/doxygen/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe
Where can we get the source for the previous version?
On Jan 28, 10:03 am, Gwoo wrote:
> Api Generator is open source. Feel free to fork the project and add
> the features you want to see.
>
> http://thechaw.com/api_generator
--~--~-~--~~~---~--~~
You received thi
I've used Xampp for linux when I didn't know how to use linux.
Now that I know how to configure a server I don't need Xampp anymore.
I recommend that you fire up google a lean how to install a php, mysql
and apache on a linux box.
On Jan 29, 5:01 pm, Smelly_Eddie wrote:
> WHy would you inst
@teknoid
Good example, actually it's the only one I've seen of a Datasource but
I'm affraid that it's a bit to much for me.
The best I could do is a Model wich I was extending into a plugin when
I just realized the problems that plugins have with AppError.
I wanted to put the code up in the bak
What else should I try?
On 29 jan, 15:01, Delirium tremens wrote:
> The code from the site:
>
> function hashPasswords($data, $enforce=false) {
> if($enforce && isset($this->data[$this->alias]['password'])) {
> if(!empty($this->data[$this->alias]['password'])) {
>
You could just add a count to the fields that you are fetching like:
$this->Foo->find('all', array('fields' => array('Foo.*', '(select count
(1) from bars Bar where Bar.foo_id = Foo.id) as bar_count')));
I use this approach both with fields and it can also be used with
conditions when you need t
WHy would you install XamPP?
Your taking already running a perfectly decent LAMP box!
XAMPP would never match the tuned performacne you;ll get using the
included binaries.
On Jan 29, 10:59 am, yusuf widi wrote:
> xampp for linux can be find on apachefriend.com
> but you know that ubuntu cd hav
The code from the site:
function hashPasswords($data, $enforce=false) {
if($enforce && isset($this->data[$this->alias]['password'])) {
if(!empty($this->data[$this->alias]['password'])) {
$this->data[$this->alias]['password'] = Security::hash
($this->dat
I'm not sure that I understand your question. What is the error you
are getting?
How are you doing the update of the related data (save, saveAll) ?
On Jan 28, 9:18 am, foldiman wrote:
> Can anyone give general strategy advice on building a tagging system?
> I'm creating an app where users simp
The "prettier" way to solve this would be to use cake's `bake`
application to create all of the methods in a scaffolded way. The
issue here is that if you decide to reconstruct your database and/or
model, you'd have to delete your cache files *and* re-bake your
controller and view files. However
C'mon people, there are only 84 votes out there - If NetBeans adds
Cake support I'm guessing not only would it do the cool IDE stuff it
does now, but we'd be able to debug, and some level of front end for
baking (like ModelBaker)
On Jan 28, 9:11 am, matt wrote:
> Great idea! Netbeans is an aweso
What are you seeing in the debug data for your Recipe find?
Post the controller code where you do the find, and what the data
output is, and it will be easier for someone to answer your question.
On Jan 28, 1:29 pm, matth wrote:
> Thanks for that tidbit about the Ingredient model.
>
> I gave re
Martin, thanks a lot! Using "readonly" works exactly as I wanted.
Just for reference, my input field looks like this now:
input('templatefile', array('label' => 'Template',
'readonly'=>TRUE)); ?>
Cheers,
tobi_one
--~--~-~--~~~---~--~~
You received this message be
array(
'className' => 'Area',
'foreignKey' => 'parent_id',
'dependent' => true
)
);
?>
this stuff works well with me...
On Thu, Jan 29, 2009 at 6:35 PM, AD7six wrote:
>
>
>
> On Jan 29, 9:58 am, Miles J wrote:
> > It seems that my belon
xampp for linux can be find on apachefriend.com
but you know that ubuntu cd have already contains php, apache and mysql?
On Thu, Jan 29, 2009 at 8:44 PM, leo wrote:
>
> try the xampp or ubuntu websites
>
> On Jan 29, 12:18 pm, Sergi Pasoev wrote:
> > Hi!
> >
> > Plese, tell me where to download
Your feeling is correct. Here's what Felix did for Google Analytics:
http://debuggable.com/posts/new-google-analytics-api:480f4dd6-c59c-445f-8ce0-4202cbdd56cb
It should serve as a nice blue print for building a Twitter
datasource...
On Jan 29, 10:28 am, hellfish wrote:
> I've seen the component
Using Git is cool. Don't you wanna be cool? :)
All the kids are using it, you should try it too...
On Jan 29, 10:07 am, leo wrote:
> @martin - yep I agree. I've tried them both and Cornerstone is great.
> I don't like paying for stuff like that though. The kind of things
> that are almost alway
Set does quite a bit of looping too, but it also looks much prettier
in the code ;)
That being said I did not find a way to use Set for this scenario, if
you do please share and I'll gladly update the post.
On Jan 29, 2:15 am, brian wrote:
> That does look nice. While I was trying to avoid loop
I've seen the component but I have a feeling that it should be a
Model.
What does the Model Control View structure say on this :p ?
On Jan 29, 10:22 am, Alexandru Ciobanu wrote:
> hellfish wrote:
> > Interacting with twitter and services like these using cake should be
> > done
> > Using a mo
thanks Martin..
I got the point.. and problem is solved...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group
@martin - yep I agree. I've tried them both and Cornerstone is great.
I don't like paying for stuff like that though. The kind of things
that are almost always freeware on Windows are nearly always payware
on Mac :(
Don't really know which to go with. I guess I'll stick with Subversion
for now, b
In my opinion Git is where it is at and I am glad to see that CakePHP
will be moving to Git eventually, because it is vastly superior IMO
than SVN plus you don't have to rely on a server to commit changes as
it is all local until you wnat to push to a server if you choose to.
Enjoy.
-Erik
On J
Hi,
The following code returns FALSE and don't load the Class :
App::import('Vendor', 'IPReflectionClass', array('file' =>
'wshelper'.DS.'lib'.DS.'soap'.DS.'IPReflectionClass.class.php'));
when I want to load the class in the following directory :
.../vendors/wshelper/lib/soap/IPReflectionClass.
In my experience a disabled field will not follow the rest of the
values to the server.
According the the w3c a disabled field "cannot be successful" which I
read as "can not have a value when submitted".
You can use the attribute "readonly" (only for text inputs) which
disables editing but the v
Thanks, that got me on the right track - I tried setting tmp (and
contents) to 755 but that made "cache not writable", then 766, back to
the orginal error and finally to 777 which worked.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to
I did not try this yet, but this should help you, right?:
http://teknoid.wordpress.com/2008/10/08/demystifying-auth-features-in-cakephp-12/
p.s. I believe the whole thing is because AuthComponent is
AuthComponent and not AuthBehavior. If it came with such a thing it
would be more clear (because
If you are on Mac OS X you should really look at Versions and
Cornerstone. They are both excellent subversion clients that are very
"Mac". I bought Cornerstone after using "Smart"SVN for a while (read
years) and it's a world of difference, even for something as basic as
versioning code.
Well, if
Hi,
I'm in truble with AuthComponent 'cause i want to use scaffolding for
simple tasks but I need to restrict access to the application.
Diving into the source I found the point o problem in the
AuthComponent source file (/cake/libs/controllers/components/auth.php
#265).
Inizialization check ac
Hi vikas,
Getting the value works no different than the value of a normal text
input field.
The controller sees
this->data['Model']['report_timeframe'] // or whatever you call it.
The options array you pass to the select field looks like this:
array(
'value' => 'visible label'
)
So I usually f
Hello all..
bit confused..
I have report generation option in my application.
In that I want to generate attendnace report by month, by quarter etc.
So I would like to put select dropdown box where there is options like
ByMonth,ByQuarte, etc.. User selects the option and see the report..
So h
Hi guys,
I have a Tag model, which HABTM Images.
I use the form helper to generate acombined edit tag and its assoc
images form.
I found a bug, in which it was already trying to INSERT tags, never
UPDATE them.
I looked in $data in the controller, and it's something like:
Array
(
[__Token
try the xampp or ubuntu websites
On Jan 29, 12:18 pm, Sergi Pasoev wrote:
> Hi!
>
> Plese, tell me where to download XAMPP for Ubuntu AMD 64.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post
Hi!
Plese, tell me where to download XAMPP for Ubuntu AMD 64.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this g
Hey guys,
I'd like to use the Set::matches function as explained in the CakePHP
1.2 book on http://book.cakephp.org/view/670/matches to check the
existance of a value within an array.
I did not get it to work within my application so I tried the examples
directly from the page and it did not wor
On OS X, you should drop-in the CakePHP directories, and leave them as is.
Unless you are running your Apache webserver under a different user than
the one you login as.
If you have chmod'd the tmp directory recursively to 666, you have removed
the execute bit, which is needed for directory trav
Try 777. It's the only way I could get it to work.
Fwiw, I don't enable the cache on my dev server as it can lead to
confusion trying to debug.
On Jan 28, 9:26 pm, Rick wrote:
> Version 1.2.1.8004
>
> I downloaded and installed Cake in my Apache document directory in new
> "Test" Directory. I c
Hi,
is there a way to activate the validation of a disabled input field?
In my view I have a field like this:
input('templatefile', array('label' => 'Template',
'disabled'=>TRUE)); ?>
The input field is disabled for the user but gets written to via
Javascript. I would like to apply the "notEmp
hellfish wrote:
> Interacting with twitter and services like these using cake should be
> done
> Using a model, datasource or component?
>
Component.
http://bakery.cakephp.org/articles/view/twitter-component
--~--~-~--~~~---~--~~
You received this message becau
Just want to get some feedback on this.
Interacting with twitter and services like these using cake should be
done
Using a model, datasource or component?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" gro
> Tell me please where can I find API-manual in the old design?
You can't - it was broken. See:-
http://groups.google.com/group/cake-php/browse_thread/thread/9dc3f5648023e2b4?q=
This isn't a new template or design. It is a new application.
--~--~-~--~~~---~--~--
http://thechaw.com/api_generator/tickets/view/4 - fixed (thanks Mark)
On Jan 29, 9:00 am, Martin Westin wrote:
> The new api (new code all the way) was written by Mark Story and Gwoo.
>
> http://mark-story.com/posts/view/the-new-face-of-cakephp-s-api
>
> Since they just released it a few days a
Thanks, Gwoo, that's what I wanted to know. It's like a vote of
confidence in Git. Now I'll investigate it.
On Jan 28, 7:48 pm, Gwoo wrote:
> > Why does CakePHP use SVN.
>
> Because when we started CakePHP 3 years ago, Git did not exist.
>
> > while The Chaw appears to use GIT?
>
> Because now G
On Jan 29, 9:58 am, Miles J wrote:
> It seems that my belongsTo (it belongs to itself to get its parent
> system) causes the crash/white page. Once I remove the belongsTo it
> works, weird, no problem though.
>
> class System extends AppModel {
>
> /**
> * Reduce usage
>
Thanks a million that was exactly what i needed.
Heres an example of the code that does what you instructed that may
help someone else in the future, if it can be improved please let me
know.
The code executes from within the A model class (A.php)
$modelB = ClassRegistry::init('B');
$modelB->un
Thanks a million that was exactly what i needed.
Heres an example of the code that does what you instructed that may
help someone else in the future, if it can be improved please let me
know.
The code executes from within the A model class (A.php)
$modelB = ClassRegistry::init('B');
$modelB->un
Works like a charm, thanks.
I thought about the counterCache behaviour as well but I need this only
in one seldom used function so I think counterCache would be overkill...
Regards
Guenther
brian wrote:
> I think the quickest way would be to create a database view.
>
> CREATE VIEW foobar AS S
It seems that my belongsTo (it belongs to itself to get its parent
system) causes the crash/white page. Once I remove the belongsTo it
works, weird, no problem though.
class System extends AppModel {
/**
* Reduce usage
*/
var $recursive = -1;
/**
Hi,
first, sorry: I'm not a guru.
take a look to this Bakery post by Nate:
http://bakery.cakephp.org/articles/view/quick-tip-doing-ad-hoc-joins-in-model-find
it completely changed my view about the pagination issue when combined
with the custom finds beacause you can force joins on habtm
a
On Jan 29, 5:14 am, Miles J wrote:
> Everytime I try to do this, the page just goes white. Is this even
> possible? What other alternatives are there.
Alternatives to what, describing your problem/usecase to get help?
Don't think so ;)
--~--~-~--~~~---~--~~
You
The new api (new code all the way) was written by Mark Story and Gwoo.
http://mark-story.com/posts/view/the-new-face-of-cakephp-s-api
Since they just released it a few days ago I imagine there may be a
few minor things to tweak. But I don't see what you describe, at least
not when looking at the
89 matches
Mail list logo