Drag to reposition your photo
Welcome to phpFox community
Hi phpFoxer,
Do you mean you want to store upload files from users from your apps? If yes, you can use phpFox library "Phpfox_File" to do it, same as we used with core modules.
April 7, 2017 11:48 am
Did you mean you follow this tut and you want to add blocks to Site Wide? If yes, you can try below code:
protected function setComponentBlock()
$this->component_block = [
"Recent Items" => [
"type_id" => "0",
"m_connection" => "", //left this empty will help you add the block to all pages
"component" => "recent_items",
"location" => "3",
"is_active" => "1",
"ordering" => "1"
Thanks, that worked! Robert, you're the best :)
March 9, 2017 12:10 pm
Hi phpFoxer,
Do you mean you want to add blocks to a page that didn't have callback as a controller and the blocks can be manages in admincp? if yes, you cannot do that at the current time. If you only add blocks and no need to allow admin can manage them, you can use the way you mentioned in the first post or follow this tut.
Okay, we have finally made it work! Thanks Robert!
February 24, 2017 12:20 pm
Thanks for the clarification. It is not stated on docs that this IDs are being used during updates, but thanks for commenting. Hope this will be useful for other developers.
Yes it is stated. Please see the doc again as it says it in the description.
October 12, 2016 9:53 am