In this work, we explore a the different forms of a new type of modified gravity, namely f(φ) gravity. We construct the Big Rip type for the energy density and the curvature of the universe. We show that dark energy is a result of the transformation of the field φ mass (dark matter) to energy. In addition, we provide that Ω_{m}≈0,050, Ω_{DM}≈0,2, Ω_{DE}≈0,746, is in excellent agreement with observation data. We explore a generalized formalism of braneworld modified gravity. We also construct a new field equations, which generalize the Einstein field equations. We provide a relation between the extra dimension in 3-brane with the vacuum energy density. We show that the energy density of matter depends directly on the number of dimensions. We manage to find the value of the Gauss-Bonnet coupling α=1/4 which is a good agreement with the results in the literature, this correspondence creates a passage between f(R) gravity and Gauss-Bonnet gravity, this comparison leads to a number of bulk dimensions equal to D=10¹²¹+4.