Welcome Guest, Not a member yet? Register   Sign In
PyroCMS v0.9.7.4 - an open-source modular general purpose CMS

[eluser]Mahyar Ss[/eluser]
hi Phil,

What used for template system?

i need multi template for my application look like PyroCMS template System

can u help me?

[eluser]Phil Sturgeon[/eluser]
[quote author="h1tman86" date="1261789470"]PyroCMS v0.9.8-dev issue:
After good installation I can access Admin section without any problem but main site isn't
woking good :-S
I got a weird message
Code:
Content Encoding Error

The page you are trying to view cannot be shown because it uses an invalid or unsupported form of compression.
My OS:
Win 7
FF 3.5.6
WampServer(Apache v2.2.8 - php v5.2.6 - mysql v5.0.51b)

I hope find a solution :roll:[/quote]

Make sure GZip compression is turned off, it should be off in v0.9.8-dev but perhaps you have an old version?

Code:
$config['compress_output'] = FALSE;

That worked for me when trying to get PyroCMS running on Zend Server anyway.

[quote author="Mahyar Ss" date="1261942858"]hi Phil,

What used for template system?

i need multi template for my application look like PyroCMS template System

can u help me?[/quote]

The template system in v0.9.7.x is HelpfulParser which is something I developed to be an extension of the built in Parser.

v0.9.8.x uses Dwoo with my Dwoo implementation.

[eluser]hugle[/eluser]
Hello Phil and other readers Smile

I came to one problem, in fact, I do not know, if it is caused by PyroCMS...
I just wanted to use this CMS with Form Generation Library located at http://ellislab.com/forums/viewthread/107861/ . It is really lovely, it cuts down Forms creation 5x times or more..

the process of creating the HTML form is really is, it for example:
Code:
$this->load->library('form');
        
        $this->form->fieldset('New question')
        ->textarea('body', FALSE, 'trim|strip_tags|required', "")
        ->html('<p style="margin-bottom: 10px;">')
        ->text('name', 'Nick', 'required|max_length[40]')
        ->html('</p>')
        ->submit('POST')
        ->validate();

        $this->data->form = $this->form->get();
        $this->data->errors = $this->form->errors;
the problem is that $this->form->get(); - is OK, it returns always data
but, $this->form->errors; - always is null. no data inside ...

I tested this function over few installations, like Live, fresh CI 1.7.2 - all were working fine. But I can't get this to work under PyroCMS

Maybe you, Phil, or someone else, can suggest something.. like $this->form->errors is used by PyroCMS by default... etc etcSmile

I really can't reproduce the bug Sad

THank you for your nice CMS Smile

I'll try to search for bugs after NY Smile

cheers, Jaroslav

[eluser]Phil Sturgeon[/eluser]
I can't think of anything that would conflict with that. Try var_dumping $this->form before it is set to see if anything is there.

With my internet still screwed until the 5th and very little free time it would be difficult for me to jump in and help with this other than give some debug advice.

Sorry dude, and happy new year!

[eluser]hugle[/eluser]
[quote author="Phil Sturgeon" date="1262288983"]I can't think of anything that would conflict with that. Try var_dumping $this->form before it is set to see if anything is there.

With my internet still screwed until the 5th and very little free time it would be difficult for me to jump in and help with this other than give some debug advice.

Sorry dude, and happy new year![/quote]

Hello,
first of all, happy new 2010 year everyone Smile and good results @ programming skills Smile


I tried your suggestion, Phil. as far no good news...
Strange, but when I try:
Code:
$this->load->library('form');
        echo'<pre>';
        print_r($this->form);
        echo '</pre>';
        exit;

Under PyroCMS my page never gets loaded... it's just loading and loading..
I see new Entries showing up but with no LUCKSad

I thought maybe it was my custom module error, but i've also tested using default modules - same results Sad

Under fresh install, above code returns results in 1 sec.

Can you think of any issues that could cause this?

It surely somehow doesn't work with PyroCMS Sad
But I want it to work Smile

I'll send you a message via message bord with the URL with working and not working results, so you can see LIVE Smile

thanks!

[eluser]hugle[/eluser]
Hello again Smile

I have played a bit, and it turns out, that even using this controller, I get error:

Code:
class Test extends Controller {

    function index() {
        $this->load->library('form');
        echo '<pre>';
        print_r($this->form);
        echo '</pre>';
        
        echo 'test';
    }
}

I thought maybe it was somehow combined with libraries extending controllers etc..etc...
But seems the problem occurs somewhere else Sad
I enter the page, and the page never load... example: http://namai.invista.lt/test

Maybe it could help somehow to debug?

Thank you Smile

[eluser]hugle[/eluser]
Hello again Smile

I have a problem with routes.
I want some paths, to call the default page.

I have found in routes.php that:
Code:
$route['default_controller'] = "pages";

as i enter website.com i get the page loaded,
so I wanted website.com/London - also load the same page as website.com.

The page which loads is created in 'Pages' with ID# 1.

I have tried:
Code:
$route['London'] = "pages/index";
$route['London'] = "pages/index/1";
$route['London'] = "pages/view/1";
$route['London'] = "pages/1";
$route['London'] = "pages"; // as a default controller

I also tried creating >
application/core_modules/pages/config/routes.php file with:
Code:
$route['London'] = "pages/index";
$route['London'] = "pages/index/1";
$route['London'] = "pages/view/1";
$route['London'] = "pages/1";
$route['London'] = "pages"; // as a default controller
same again Sad

still I have no luck, I get redirected to error_404 controller.
Anyone can help me? where should I put this code, or use different appraoch? Smile

I tried creating the controller: Cities,
and route to it - it works. but How do I call the default page or page by ID from it ?

Thank you !Smile

[eluser]Phil Sturgeon[/eluser]
[quote author="hugle" date="1262536035"]
I also tried creating >
application/core_modules/pages/config/routes.php file with:
Code:
$route['London'] = "pages/index";
$route['London'] = "pages/index/1";
$route['London'] = "pages/view/1";
$route['London'] = "pages/1";
$route['London'] = "pages"; // as a default controller
same again Sad

still I have no luck, I get redirected to error_404 controller.
Anyone can help me? where should I put this code, or use different appraoch? Smile

I tried creating the controller: Cities,
and route to it - it works. but How do I call the default page or page by ID from it ?

Thank you !Smile[/quote]

You may or may not be happy with the result of this, but it's the best I could do. I have added a feature into v0.9.8-dev to allow you to add routes to your global routes.php file like so:

Code:
$route['London'] = "pages/view/home";

This would have been to tricky to implement into v0.9.7.3 as the whole page system is rather different now. The v0.9.8-dev branch is pretty much ready to go so it might be worth giving that a try.

As for the forms problem I REALLY dont have the time to look into it right now I am very sorry. Perhaps you could prepare a "here are the links, this is how you install and this is my exact test-case to re-create the problem"?

[eluser]hugle[/eluser]
[quote author="Phil Sturgeon" date="1262551280"]
You may or may not be happy with the result of this, but it's the best I could do. I have added a feature into v0.9.8-dev to allow you to add routes to your global routes.php file like so:

Code:
$route['London'] = "pages/view/home";
$route['city1'] = "pages/view/home";
$route['city2'] = "pages/view/home";

This would have been to tricky to implement into v0.9.7.3 as the whole page system is rather different now. The v0.9.8-dev branch is pretty much ready to go so it might be worth giving that a try.

As for the forms problem I REALLY dont have the time to look into it right now I am very sorry. Perhaps you could prepare a "here are the links, this is how you install and this is my exact test-case to re-create the problem"?[/quote]

Hello Phil,
thanks for your replies. I will test, later today, the form library with 9.7.3 and 0.98-dev... to see how it works or now. with EXACT steps done.

Thanks for adding this to -dev. Btw, -dev does not have new GUI?

And for routing, as for now, I have created the controller, 'cities', I redirect:
Code:
$router['London'] = 'cities/index';

and the cities.php controller is:
Code:
&lt;?php if (!defined('BASEPATH')) exit('No direct script access allowed');

class Cities extends Public_Controller
{
    function __construct()
    {
        parent::Public_Controller();
        $this->load->model('pages_m');
    }
    
    // Catch all requests to this page in one mega-function
    function index()
    {
        $page = $this->cache->model('pages_m', 'getByPath', array( 0 => 'home'));
        
        $this->load->library('parser');
    $page->body = $this->parser->string_parse($page->body);
    $city = $this->uri->segment(1);
        $page->meta_title = $city;
        $this->data->in_city = '<strong> in '.$city.'</strong>';
        $this->data->page =& $page;
        $this->data->page->title = $this->data->page->title. ' in '.$city;
    
        // Create page output
        $this->layout->title( $page->meta_title )
            ->set_metadata('keywords', $page->meta_keywords)
            ->set_metadata('description', $page->meta_description)
            ->create('index', $this->data, FALSE, 'pages');
    }
    
}
Maybe someone finds this useful for 'today'...
And BTW, is it difficult to switch to 0.98 from 0.9.7.3 ..? if not, I'd switchSmile

I will try today I think Smile

good luck everyone!

[eluser]sshz[/eluser]
Took a look at 0.9.8

How do i disable cache? In previous versions of Pyro it was enough just to delete cache folder and the cache is not working any more.

I installed my module in admin area but I can't see it in the menu until I deleted the cache manually. Why do I need caching in admin area? It was always a pain in ass, especialy for my own modules. Need more speed? Turn off js fade.

Why do I need this dwoo? PyroCMS is getting bigger and bigger, take a look at WordPress, no dwoos, caching, twitter support out of the box. But it's dead simple to use for developer and for user.

Installer is not working in XAMPP, WAMP, UniServer anyone got it working? Smile

New path for modules, now path to my module logs folder is as simple as:
http://mysite/application/modules/third_..._name/logs

New admin area interface is mucher better then old one!

Got some errors at front page, just after the installation:

A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: controllers/pages.php

Line Number: 73

A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: views/index.php

Line Number: 9




Theme © iAndrew 2016 - Forum software by © MyBB