bitmatix
-
Posts
16 -
Joined
-
Last visited
Posts posted by bitmatix
-
-
Why does it have no effect. I can set it here in config.php.
If I set this:
$config->paths->sessions = 'tcp://localhost:11211';
in my config.php
it get this:
/var/www/tcp://localhost:11211
(debugged with die($config->paths->sessions); in index.php)
Any ideas how to fix this?
-
look here:
http://processwire.com/talk/topic/3627-memcache-error-during-installation-process/#entry35527
you have to modify this line to suite your needs
I don't like this solution, because in my case it requires an if/else (because I don't use memcache on my dev machine) which I already have in my config file, to handle db configurations for dev and live system
I think it would be better, if it where configurable in config file.
-
Hi there,
I'm using Sessions with Memcache and I need to set session path to:
$config->paths->sessions = 'tcp://localhost:11211';
but if i set this in my config.php it doesn't have any effect. Do I have to set this in the index.php directly?
Cheers,
Daniel
-
@Soma: Thank you for your fast replay!
I'm using a (own) modified version of the FormTemplateProcessor module and my code looks almost the same as in the original module. I want to add the "class" attribute to the "select" tag, not to the "option" tags.
-
bitmax, not sure what you mean Could you explain in more detail?
I want to do the following:
// get the collection of inputs that can populate this page's fields $inputfields = $this->page->getInputfields(); foreach ($inputfields as $inputfield) { $inputfield->setAttribute('class', 'span4'); $form->add($inputfield); }
It seems like this only works for text inputfields, but not for "InputfieldPage" fields.
-
Hey guys,
I'm also thinking about how to work with the PW clone and to have my site under version control. Is there any way to define PW a "submodule" from which I can pull (I'm also very new to git)?
-
Quick look at intall.php it turns out it parses the phpinfo() table and search for json support. It may fail because the phpinfo returned is different in php5.4. Are you still able to install it anyway?
Thank you for your fast replay Soma.
Yes, I was abled to install PW anyway and everything seems to work fine. I was just wondering about the "check" message.
-
Hey guys,
I've installed PHP 5.4.6 on my Mac and the phpinfo() says that I have json support:
json support enabled
json version 1.2.1
But when I try to install PW the check screens says: "Failed test for: json support".
Any ideas?
Thanks a lot!
-
bitmatix, have a look at your Page field's Input tab and two options on it:
Custom selector to find selectable pages
Custom PHP code to find selectable pages
Cheers.
Thanks a lot slkwrm, that's what I was looking for
Now I have the problem, that I can't set the "class" attribute of the generated "select" tag. It only works for normal textfields. Any idea?
-
Hi guys,
I'm trying to build an "advanved search" form depending on the idea of the "FormTemplateProcessor" and i also have some trouble with "InputfieldPage", because I need to modify the options, that appear in the select field. Is there any chance to "filter" the pages, which goes into the "InputfieldPage" before the field gets rendered?
Thanks!!!
-
No, it's not in a static function, it's in a public function.
$page = wire('pages')->get(123);
Doesn't also work
EDIT:
"wire('pages')->...." does work!
-
I have a module
class MyModule extends WireData implements Module, ConfigurableModule {
and I wonder why I could not use:
$this->pages->get(123);
I always have to do:
Wire::getFuel('pages')->get(123);
Does anyone knows what's going wrong?
-
Hi,
I have a page with a template this template has a "repeater" field. Now I want to add entries to the repeater field via API. Could anyone explain me how to do that?
page = 'vehicle'
template = 'vehicleTemplate';
repeater_field = 'vehicleFeature';
$page = $pages->get("template=vehicleTemplate"); $features = array('feature1', 'feature2', 'feature3'); foreach($features as $feature) { ?? }
-
Thank you guys, for your fast replies.
What I'm trying to do is the following:
I'm getting some data from an external webservice and I'm trying to "convert" it to a WireArray (maybe something else), to have the ability to search in this data, without storing the data/items as pages.
What I want to have, is the ability to search in the data of the webservice as described in the "Arrays" section of the API documentation.
-
Hi there,
I'm trying to do the following:
$array = new WireArray(); $array->set('test',123);
but I always get an error:
Error Exception: Item 'test' set to WireArray is not an allowed type
What am I doing wrong?
Thanks a lot!
- 1
Set session path for Memcache
in General Support
Posted
Hey Ryan,
thank you for your reply!
I've tried to perform the ini_set() in /site/config.php and left the index.php as it is (no modifications) but it doesn't work. I don't want to modify the index.php because it seems like this file get also updated if I use the "AutoUpgrade" module, and then all my changes made in index.php are gone.